summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/service_pppoe-server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/service_pppoe-server.py b/src/conf_mode/service_pppoe-server.py
index 65a7f93b0..b43e76f6d 100755
--- a/src/conf_mode/service_pppoe-server.py
+++ b/src/conf_mode/service_pppoe-server.py
@@ -67,9 +67,9 @@ def get_config(config=None):
# configured in a different way in the configuration, this is why we split
# the configuration
if 'name_server' in pppoe:
+ ns_v4 = []
+ ns_v6 = []
for ns in pppoe['name_server']:
- ns_v4 = []
- ns_v6 = []
if is_ipv4(ns): ns_v4.append(ns)
else: ns_v6.append(ns)