Tunnel view model: Invalidate the configuration object when updating allowedIPs using the 'Exclude private IPs' switch

This commit is contained in:
Roopesh Chander 2018-11-19 15:22:21 +05:30
parent 643e988f74
commit af49397caa
1 changed files with 1 additions and 0 deletions

View 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
}
}