summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/vpn_l2tp.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/conf_mode/vpn_l2tp.py b/src/conf_mode/vpn_l2tp.py
index 93ee9edf9..fb7297928 100755
--- a/src/conf_mode/vpn_l2tp.py
+++ b/src/conf_mode/vpn_l2tp.py
@@ -106,11 +106,8 @@ def get_config():
else:
config_data['dnsv6'].append(name_server)
- if c.exists('wins-servers server-1'):
- config_data['wins'].append(c.return_value('wins-servers server-1'))
-
- if c.exists('wins-servers server-2'):
- config_data['wins'].append(c.return_value('wins-servers server-2'))
+ if c.exists(['wins-server']):
+ config_data['wins'] = c.return_values(['wins-server'])
if c.exists('outside-address'):
config_data['outside_addr'] = c.return_value('outside-address')
@@ -326,6 +323,9 @@ def verify(c):
raise ConfigError(
"\"set vpn l2tp remote-access client-ipv6-pool prefix\" required for delegate-prefix ")
+ if len(c['wins']) > 2:
+ raise ConfigError('Not more then two IPv4 WINS name-servers can be configured')
+
if len(c['dnsv4']) > 2:
raise ConfigError('Not more then two IPv4 DNS name-servers can be configured')