From 8590a8804a5c29814a74eab42466ade41ac99d98 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Mon, 19 Nov 2018 15:22:21 +0530 Subject: [PATCH] Tunnel view model: Invalidate the configuration object when updating allowedIPs using the 'Exclude private IPs' switch Signed-off-by: Roopesh Chander --- WireGuard/WireGuard/UI/TunnelViewModel.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/WireGuard/WireGuard/UI/TunnelViewModel.swift b/WireGuard/WireGuard/UI/TunnelViewModel.swift index 972c446..992a56d 100644 --- a/WireGuard/WireGuard/UI/TunnelViewModel.swift +++ b/WireGuard/WireGuard/UI/TunnelViewModel.swift @@ -361,6 +361,7 @@ class TunnelViewModel { [TunnelViewModel.PeerData.ipv4DefaultRouteString] } scratchpad[.allowedIPs] = modifiedAllowedIPStrings.joined(separator: ", ") + validatedConfiguration = nil // The configuration has been modified, and needs to be saved excludePrivateIPsValue = isOn } }