summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/conf_mode/ipsec-settings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/ipsec-settings.py b/src/conf_mode/ipsec-settings.py
index fcc19062d..a475ca14a 100755
--- a/src/conf_mode/ipsec-settings.py
+++ b/src/conf_mode/ipsec-settings.py
@@ -49,9 +49,9 @@ def get_config(config=None):
# IPsec isn't configured enough to warrant starting StrongSWAN for it,
# it's just some incomplete or leftover options.
- if config.exists_effective("vpn ipsec site-to-site peer") or \
+ if not (config.exists_effective("vpn ipsec site-to-site peer") or \
config.exists_effective("vpn ipsec profile") or \
- config.exists_effective("vpn l2tp remote-access ipsec-settings"):
+ config.exists_effective("vpn l2tp remote-access ipsec-settings")):
return {}
data = {"install_routes": "yes"}