diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/vpn_l2tp.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/conf_mode/vpn_l2tp.py b/src/conf_mode/vpn_l2tp.py index 5a68faa5d..cb4e44443 100755 --- a/src/conf_mode/vpn_l2tp.py +++ b/src/conf_mode/vpn_l2tp.py @@ -73,10 +73,12 @@ def _accel_cmd(command): def get_config(): c = Config() - if not c.exists('vpn l2tp remote-access '): + base = ['vpn', 'l2tp' 'remote-access'] + if not c.exists(base): return None - c.set_level('vpn l2tp remote-access') + c.set_level(base) + config_data = { 'authentication': { 'mode': 'local', |