aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/Shared/NETunnelProviderProtocol+Extension.swift (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move model helpers to model directoryJason A. Donenfeld2018-12-221-40/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Move name from interface to tunnelJason A. Donenfeld2018-12-221-3/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Nuke trailing spacesJason A. Donenfeld2018-12-211-7/+7
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* providerConfiguration is now a WgQuickConfigEric Kuck2018-12-211-28/+12
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* All migration stuff moved to one gross fileEric Kuck2018-12-211-20/+0
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Simplify versioning of stored dataJason A. Donenfeld2018-12-211-26/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Get rid of superflous isActivateOnDemandEnabled keyJason A. Donenfeld2018-12-211-11/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Updated NETunnelProvider save formatEric Kuck2018-12-211-17/+70
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* TunnelsManager: If only Activate On Demand has changed, don't restart tunnelRoopesh Chander2018-12-191-0/+6
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* NE: Handle bad domain names and Activate On DemandRoopesh Chander2018-12-191-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>
* More linter warnings fixed, enabled more swiftlint rules, project cleanupEric Kuck2018-12-121-1/+1
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Model, Tunnels manager: Rewrite the model for VPN-on-demandRoopesh Chander2018-11-121-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>
* Model: Add activationType to tunnel configurationRoopesh Chander2018-11-111-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>
* Move logic to extension: NETunnelProviderProtocol extension code should be sharedRoopesh Chander2018-11-081-0/+35
Signed-off-by: Roopesh Chander <roop@roopc.net>