do not use ipv6 if no ipv6 is configured

This commit is contained in:
2022-08-10 10:52:47 +02:00
parent bd40d3c58d
commit 932ee012c6

View File

@@ -9,7 +9,9 @@ server:
interface: 127.0.0.53 interface: 127.0.0.53
interface: ::1 interface: ::1
outgoing-interface: {{ ansible_default_ipv4.address }} outgoing-interface: {{ ansible_default_ipv4.address }}
{% if ansible_default_ipv6 is defined %}
outgoing-interface: {{ ansible_default_ipv6.address }} outgoing-interface: {{ ansible_default_ipv6.address }}
{% endif %}
access-control: 192.168.1.0/24 allow access-control: 192.168.1.0/24 allow
access-control: 192.168.3.0/24 allow access-control: 192.168.3.0/24 allow
access-control: 172.16.0.0/24 allow access-control: 172.16.0.0/24 allow