diff options
author | Roopesh Chander <roop@roopc.net> | 2018-11-19 15:22:21 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-11-19 15:22:27 +0530 |
commit | 8590a8804a5c29814a74eab42466ade41ac99d98 (patch) | |
tree | 4d8a1f0ac53bab2b9e542fb1483207bc07980fcf /WireGuard/WireGuard/UI | |
parent | Config file parser: Be case-insensitive to attribute keys in the config file (diff) | |
download | wireguard-apple-8590a8804a5c29814a74eab42466ade41ac99d98.tar.xz wireguard-apple-8590a8804a5c29814a74eab42466ade41ac99d98.zip |
Tunnel view model: Invalidate the configuration object when updating allowedIPs using the 'Exclude private IPs' switch
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r-- | WireGuard/WireGuard/UI/TunnelViewModel.swift | 1 |
1 files changed, 1 insertions, 0 deletions
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 } } |