diff options
author | Jernej Jakob <jernej.jakob@gmail.com> | 2020-06-11 08:33:46 +0200 |
---|---|---|
committer | Jernej Jakob <jernej.jakob@gmail.com> | 2020-06-11 22:10:47 +0200 |
commit | 7f2007964991b95166f4ab1255a57f4652c554ec (patch) | |
tree | 2044873b3166de753c343e29d67143cae755df50 /src/conf_mode/dns_forwarding.py | |
parent | ba08187c069da93c943935ef60a78b506c035af0 (diff) | |
download | vyos-1x-7f2007964991b95166f4ab1255a57f4652c554ec.tar.gz vyos-1x-7f2007964991b95166f4ab1255a57f4652c554ec.zip |
dns forwarding: T2486: remove unnecessary intermediate name_servers variable
Diffstat (limited to 'src/conf_mode/dns_forwarding.py')
-rwxr-xr-x | src/conf_mode/dns_forwarding.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/dns_forwarding.py b/src/conf_mode/dns_forwarding.py index 36e2abb4a..959c09bf8 100755 --- a/src/conf_mode/dns_forwarding.py +++ b/src/conf_mode/dns_forwarding.py @@ -82,8 +82,8 @@ def get_config(conf): dns['export_hosts_file'] = "no" if conf.exists(['name-server']): - name_servers = conf.return_values(['name-server']) - dns['name_servers'] = dns['name_servers'] + name_servers + dns['name_servers'] = bracketize_ipv6_addrs( + conf.return_values(['name-server'])) if conf.exists(['system']): conf.set_level(['system']) |