diff options
author | Roopesh Chander <roop@roopc.net> | 2018-11-01 15:53:10 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-11-01 15:53:10 +0530 |
commit | 040ce32015b7972f38063411de84f90c5914e98b (patch) | |
tree | 0650d1dbf0f79b144a9eba40e54474e310866a12 /WireGuard | |
parent | VPN: Restart tunnel after modifying a currently active configuration (diff) | |
download | wireguard-apple-040ce32015b7972f38063411de84f90c5914e98b.tar.xz wireguard-apple-040ce32015b7972f38063411de84f90c5914e98b.zip |
VPN: TunnelsManager: Fix deletion code
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard')
-rw-r--r-- | WireGuard/WireGuard/VPN/TunnelsManager.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/VPN/TunnelsManager.swift b/WireGuard/WireGuard/VPN/TunnelsManager.swift index 73c7336..7c942ad 100644 --- a/WireGuard/WireGuard/VPN/TunnelsManager.swift +++ b/WireGuard/WireGuard/VPN/TunnelsManager.swift @@ -213,7 +213,7 @@ class TunnelsManager { } if let s = self { for i in ((tunnelIndex + 1) ..< s.tunnels.count) { - s.tunnels[i].index = s.tunnels[i].index + 1 + s.tunnels[i].index = s.tunnels[i].index - 1 } s.tunnels.remove(at: tunnelIndex) s.tunnelNames.remove(tunnelName) |