diff options
author | Roopesh Chander <roop@roopc.net> | 2018-11-10 19:08:21 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-11-11 01:17:36 +0530 |
commit | 4b7094d652c657de0b802dcee91f0ccf2e07bb58 (patch) | |
tree | b6c1b06b43aebb27f3292261c33d6e19d4b8eb59 /WireGuard/Shared/NETunnelProviderProtocol+Extension.swift | |
parent | Model: ActivityType enum to represent VPN-on-demand options (diff) | |
download | wireguard-apple-4b7094d652c657de0b802dcee91f0ccf2e07bb58.tar.xz wireguard-apple-4b7094d652c657de0b802dcee91f0ccf2e07bb58.zip |
Model: Add activationType to tunnel configuration
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>
Diffstat (limited to '')
-rw-r--r-- | WireGuard/Shared/NETunnelProviderProtocol+Extension.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/Shared/NETunnelProviderProtocol+Extension.swift b/WireGuard/Shared/NETunnelProviderProtocol+Extension.swift index ec8b294..591b0eb 100644 --- a/WireGuard/Shared/NETunnelProviderProtocol+Extension.swift +++ b/WireGuard/Shared/NETunnelProviderProtocol+Extension.swift @@ -14,7 +14,7 @@ extension NETunnelProviderProtocol { providerBundleIdentifier = "\(appId).network-extension" providerConfiguration = [ "tunnelConfiguration": serializedTunnelConfiguration, - "tunnelConfigurationVersion": 1 + "tunnelConfigurationVersion": 2 ] let endpoints = tunnelConfiguration.peers.compactMap({$0.endpoint}) |