From d5816eb8d3f080a55f7efaf0cf3b24386e376e8c Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 29 May 2018 07:00:27 +0200 Subject: T664: DNS forwarder config broken with more than 2 zones --- src/conf_mode/dns_forwarding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/conf_mode/dns_forwarding.py b/src/conf_mode/dns_forwarding.py index 1283d68b0..5b8724411 100755 --- a/src/conf_mode/dns_forwarding.py +++ b/src/conf_mode/dns_forwarding.py @@ -57,7 +57,7 @@ local-address={{ listen_on | join(',') }} forward-zones={% for d in domains %} {{ d.name }}={{ d.servers | join(";") }} -{%- if loop.first %}, {% endif %} +{%- if not loop.last %}, {% endif %} {% endfor %} {% endif %} -- cgit v1.2.3