]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
Tunnel view model: Invalidate the configuration object when updating allowedIPs using...
authorRoopesh Chander <roop@roopc.net>
Mon, 19 Nov 2018 09:52:21 +0000 (15:22 +0530)
committerRoopesh Chander <roop@roopc.net>
Mon, 19 Nov 2018 09:52:27 +0000 (15:22 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/UI/TunnelViewModel.swift

index 972c446dbee89b18d3de4fea27ebe3a6d86c4d37..992a56d3acd24d672067f53e18f3bcdcd0047555 100644 (file)
@@ -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
         }
     }