Model: Add a version number to the tunnel

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2018-10-25 17:33:42 +05:30
parent c8fba951ad
commit 0fcf48ce75
1 changed files with 2 additions and 1 deletions

View File

@ -175,7 +175,8 @@ extension NETunnelProviderProtocol {
providerBundleIdentifier = "\(appId).WireGuardNetworkExtension"
providerConfiguration = [
"tunnelConfiguration": serializedTunnelConfiguration
"tunnelConfiguration": serializedTunnelConfiguration,
"tunnelConfigurationVersion": 1
]
serverAddress = firstValidEndpoint?.stringRepresentation() ?? "Unspecified"
username = tunnelConfiguration.interface.name