From 237a9bedbcb22adb38ccdc1db3e2a42f3db5987b Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 3 Oct 2020 13:53:59 +0200 Subject: pppoe-server: T2936: move v4/v6 nameserver lists out of for loop --- src/conf_mode/service_pppoe-server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/conf_mode') 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) -- cgit v1.2.3