From d4998fcc4705a3003f673818c18d621673f7cd3d Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 5 May 2021 21:37:45 +0200 Subject: dns: T3277: improve Jinja2 templating code for serve-rfc1918 yes/no --- data/templates/dns-forwarding/recursor.conf.tmpl | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'data/templates/dns-forwarding') diff --git a/data/templates/dns-forwarding/recursor.conf.tmpl b/data/templates/dns-forwarding/recursor.conf.tmpl index 672080d63..9e0ad5d17 100644 --- a/data/templates/dns-forwarding/recursor.conf.tmpl +++ b/data/templates/dns-forwarding/recursor.conf.tmpl @@ -29,14 +29,8 @@ local-address={{ listen_address | join(',') }} # dnssec dnssec={{ dnssec }} -{# dns: T3277: #} -{% if no_serve_rfc1918 is defined %} -# serve-rfc1918 -serve-rfc1918=no -{% else %} -# serve-rfc1918 -serve-rfc1918=yes -{% endif %} +# serve rfc1918 records +serve-rfc1918={{ 'no' if no_serve_rfc1918 is defined else 'yes' }} forward-zones-file=recursor.forward-zones.conf -- cgit v1.2.3