aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/TunnelViewModel.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-11-19 15:22:21 +0530
committerRoopesh Chander <roop@roopc.net>2018-11-19 15:22:27 +0530
commit8590a8804a5c29814a74eab42466ade41ac99d98 (patch)
tree4d8a1f0ac53bab2b9e542fb1483207bc07980fcf /WireGuard/WireGuard/UI/TunnelViewModel.swift
parentConfig file parser: Be case-insensitive to attribute keys in the config file (diff)
downloadwireguard-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 'WireGuard/WireGuard/UI/TunnelViewModel.swift')
-rw-r--r--WireGuard/WireGuard/UI/TunnelViewModel.swift1
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
}
}