aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-06-11TunnelsManager: store UID on macOS for keychain availabilityJason A. Donenfeld1-6/+23
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-04-03macOS: Better handling of tunnels created by another userRoopesh Chander1-3/+3
Previously, the tunnels just got deleted. Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-12Log migration of tunnel configurationRoopesh Chander1-0/+1
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-12Don't migrate in asTunnelConfiguration()Roopesh Chander1-11/+8
It causes problems when installing a tunnel through a Configuration Profile on macOS and activating it first through Network Preferences. Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-06PrivateDataConfirmation: prompt with touch/face/pin/password ID for viewing/exporting keysJason A. Donenfeld1-2/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-06LegacyConfig: Remove and support plaintext for .mobileconfigJason A. Donenfeld1-0/+13
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-06Keychain: store configurations in keychain instead of providerConfigJason A. Donenfeld1-11/+27
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-01-07Update copyrightJason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-22Don't set username on NETunnelProviderProtocolRoopesh Chander1-3/+0
The username corresponds to the Account field in iOS system VPN UI, but if we don't set it, the field is not shown, so setting it isn't really required. Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-22Localize remaining strings in network extensionJason A. Donenfeld1-0/+8
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-22Move model helpers to model directoryJason A. Donenfeld1-2/+0
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-22Move name from interface to tunnelJason A. Donenfeld1-3/+4
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-21Nuke trailing spacesJason A. Donenfeld1-7/+7
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-21providerConfiguration is now a WgQuickConfigEric Kuck1-28/+12
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-21All migration stuff moved to one gross fileEric Kuck1-20/+0
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-21Simplify versioning of stored dataJason A. Donenfeld1-26/+10
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-21Get rid of superflous isActivateOnDemandEnabled keyJason A. Donenfeld1-11/+3
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-21Updated NETunnelProvider save formatEric Kuck1-17/+70
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-19TunnelsManager: If only Activate On Demand has changed, don't restart tunnelRoopesh Chander1-0/+6
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-19NE: Handle bad domain names and Activate On DemandRoopesh Chander1-2/+7
This combination causes iOS to keep trying to bring up the tunnel, leading to a lot of displayMessage() alerts. In this fix, if we get a DNS resolution error in an Activate On Demand enabled tunnel, we silently retry 9 times (with a 4-second delay before each retry) and then show the displayMessage() alert. Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-12More linter warnings fixed, enabled more swiftlint rules, project cleanupEric Kuck1-1/+1
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-11-12Model, Tunnels manager: Rewrite the model for VPN-on-demandRoopesh Chander1-1/+1
The VPN-on-demand settings should not be part of the tunnel configuration. Rather, the onDemandRules stored in the tunnel provider configuration serve as the one place where the VPN-on-demand settings are stored. Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-11Model: Add activationType to tunnel configurationRoopesh Chander1-1/+1
We make sure existing tunnel serializations can be deserialized correctly. We also bump up the tunnelConfigurationVersion, because the tunnel configuration contents have changed. Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-08Move logic to extension: NETunnelProviderProtocol extension code should be sharedRoopesh Chander1-0/+35
Signed-off-by: Roopesh Chander <roop@roopc.net>