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)