summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/vpn_anyconnect.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/vpn_anyconnect.py b/src/conf_mode/vpn_anyconnect.py
index 45c06bffa..158e1a117 100755
--- a/src/conf_mode/vpn_anyconnect.py
+++ b/src/conf_mode/vpn_anyconnect.py
@@ -43,6 +43,9 @@ def get_hash(password):
def get_config():
conf = Config()
base = ['vpn', 'anyconnect']
+ if not conf.exists(base):
+ return None
+
ocserv = conf.get_config_dict(base, key_mangling=('-', '_'), get_first_key=True)
default_values = defaults(base)
ocserv = dict_merge(default_values, ocserv)