forked from WireGuard/wireguard-apple
-
Notifications
You must be signed in to change notification settings - Fork 2
Initialize TunnelsManager and handle VPN configuration import
#37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
JohnDaWalka
wants to merge
87
commits into
mullvad:am/enable-include-all-networks
Choose a base branch
from
JohnDaWalka:implement-ios
base: am/enable-include-all-networks
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Initialize TunnelsManager and handle VPN configuration import
#37
JohnDaWalka
wants to merge
87
commits into
mullvad:am/enable-include-all-networks
from
JohnDaWalka:implement-ios
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
People keep asking. Signed-off-by: Jason A. Donenfeld <[email protected]>
According to [1], the `capacity` parameter is specified as "the number of instances of T in the re-bound region" and not the total size of the rebound struct. Without this patch, there are crashes in the extension with the following error: Fatal error: self must be a properly aligned pointer for types Pointee and T` Since the subsequent line in the code only reads `sizeof(in_addr)` or `sizeof(in6_addr)` anyway, change the `capacity` parameter to just be a count of 1. [1] https://developer.apple.com/documentation/swift/unsafepointer/withmemoryrebound(to:capacity:_:) Signed-off-by: John Biggs <[email protected]> Signed-off-by: Jason A. Donenfeld <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
This allows us to remove a good deal of legacy cruft. Signed-off-by: Jason A. Donenfeld <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
Since around iOS 15.1, calling `setNetworkSettings()` when in airplane mode, throws an unknown error: Error Domain=NEAgentErrorDomain Code=1 Signed-off-by: Andrej Mihajlov <[email protected]>
…erting flag. Signed-off-by: Andrej Mihajlov <[email protected]>
This prevents linking against wg-go when 3rd-party application needs to use the WireGuardKit types from within the main bundle, therefore prevents wg-go from spinning off Golang threads where not applicable. Signed-off-by: Andrej Mihajlov <[email protected]>
Signed-off-by: Andrej Mihajlov <[email protected]>
Signed-off-by: Andrej Mihajlov <[email protected]>
Signed-off-by: Andrej Mihajlov <[email protected]>
Signed-off-by: Andrej Mihajlov <[email protected]>
Signed-off-by: Andrej Mihajlov <[email protected]>
Signed-off-by: Andrej Mihajlov <[email protected]>
Signed-off-by: Andrej Mihajlov <[email protected]>
Signed-off-by: Andrej Mihajlov <[email protected]>
Signed-off-by: Andrej Mihajlov <[email protected]>
* **AppDelegate.swift** - Add code to initialize the `TunnelsManager` in the `application(_:didFinishLaunchingWithOptions:)` method. - Add code to handle the import of VPN configurations from files in the `application(_:open:options:)` method. * **MainViewController.swift** - Add code to initialize the `TunnelsManager` in the `viewDidLoad` method. * **Info.plist** - Add the `com.apple.developer.networking.networkextension` entitlement. - Add the `com.apple.developer.networking.wifi-info` entitlement.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
AppDelegate.swift
TunnelsManagerin theapplication(_:didFinishLaunchingWithOptions:)method.application(_:open:options:)method.MainViewController.swift
TunnelsManagerin theviewDidLoadmethod.Info.plist
com.apple.developer.networking.networkextensionentitlement.com.apple.developer.networking.wifi-infoentitlement.This change is