From a374e94a72d64d71761687971de92693cd4e919c Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Sat, 24 Jul 2021 10:41:40 -0500 Subject: T3697: fix a conditional. --- src/conf_mode/ipsec-settings.py | 4 ++-- 1 file 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"} -- cgit v1.2.3