Skip to content

Drop environments from ExtendedTunnel#1368

Merged
keeshux merged 12 commits into
masterfrom
refactoring/multiple-active-profiles
May 13, 2025
Merged

Drop environments from ExtendedTunnel#1368
keeshux merged 12 commits into
masterfrom
refactoring/multiple-active-profiles

Conversation

@keeshux

@keeshux keeshux commented May 12, 2025

Copy link
Copy Markdown
Member

Update Core to handle them in Tunnel.

Do not replicate dataCount and lastErrorCode because they are now
per-profile and directly available via environments. Just notify
with objectWillChange.send() when there are changes in Tunnel so
that the observing views can re-read the values from the updated
environments.

Pinned profile in macOS no longer makes sense with multiple
profiles, and so lastProfileId, which is not necessary in iOS/tvOS
where the NE profile keeps .isEnabled even when inactive.

Some UI assumes a single active tunnel, rework it later for #218.

Fixes #1360
Fixes #1367

keeshux added 2 commits May 12, 2025 11:05
Update Core to handle them in Tunnel.

Do not replicate dataCount and lastErrorCode because they are now
per-profile and directly available via environments. Just notify
with objectWillChange.send() when there are changes in Tunnel so
that the observing views can re-read the values from the updated
environments.

Pinned profile in macOS no longer makes sense with multiple
profiles, and so lastProfileId, which is not necessary in iOS/tvOS
where the NE profile keeps .isEnabled even when inactive.
@keeshux keeshux self-assigned this May 12, 2025
@keeshux keeshux added enhancement New feature or request refactoring Improves software architecture labels May 12, 2025
@keeshux keeshux moved this to In Progress in 2025 Q2-Q4 Scaling May 12, 2025
@keeshux keeshux added this to the 3.4.0 milestone May 12, 2025
@keeshux keeshux merged commit 36ca110 into master May 13, 2025
@keeshux keeshux deleted the refactoring/multiple-active-profiles branch May 13, 2025 12:11
@keeshux keeshux moved this from In Progress to Done in 2025 Q2-Q4 Scaling May 13, 2025
keeshux added a commit that referenced this pull request May 13, 2025
Revert relevant part of #1368 to keep functionality as is until #218.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request refactoring Improves software architecture

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

App Groups are not available to System Extensions Refactor for handling multiple tunnel environments

1 participant