summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/templates/dhcp-server/dhcpdv6.conf.tmpl4
1 files changed, 1 insertions, 3 deletions
diff --git a/data/templates/dhcp-server/dhcpdv6.conf.tmpl b/data/templates/dhcp-server/dhcpdv6.conf.tmpl
index 25e5fa592..8d653ff72 100644
--- a/data/templates/dhcp-server/dhcpdv6.conf.tmpl
+++ b/data/templates/dhcp-server/dhcpdv6.conf.tmpl
@@ -9,9 +9,7 @@ option dhcp6.preference {{ preference }};
{% endif %}
{% if global_parameters is defined and global_parameters.name_server is defined and global_parameters.name_server is not none %}
-{% for nameserver in global_parameters.name_server %}
-option dhcp6.name-servers {{ nameserver }};
-{% endfor %}
+option dhcp6.name-servers {{ global_parameters.name_server | join(', ') }};
{% endif %}
# Shared network configration(s)