VPN: Save the tunnel name when modifying a tunnel
This commit is contained in:
parent
7d61385572
commit
f2cbf10f72
|
@ -96,6 +96,9 @@ class TunnelsManager {
|
|||
|
||||
let tunnelProviderManager = tunnel.tunnelProvider
|
||||
let isNameChanged = (tunnelName != tunnelProviderManager.localizedDescription)
|
||||
if (isNameChanged) {
|
||||
tunnel.name = tunnelName
|
||||
}
|
||||
tunnelProviderManager.protocolConfiguration = NETunnelProviderProtocol(tunnelConfiguration: tunnelConfiguration)
|
||||
tunnelProviderManager.localizedDescription = tunnelName
|
||||
tunnelProviderManager.isEnabled = true
|
||||
|
|
Loading…
Reference in New Issue