summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruvok cheetah2023-08-21 18:17:17 +0200
committeruvok cheetah2023-08-21 18:17:17 +0200
commit3197658cda2d3069c42584b24508000985291c0a (patch)
treecb268d6f579b8d66f8a318bc10412aa1f677ff27
parent6f07852460cf475c37dd5b2cc94857d2e9e05070 (diff)
tinc: Add address family
-rw-r--r--roles/router/templates/tinc.conf.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/router/templates/tinc.conf.j2 b/roles/router/templates/tinc.conf.j2
index bc71107..b7011e1 100644
--- a/roles/router/templates/tinc.conf.j2
+++ b/roles/router/templates/tinc.conf.j2
@@ -1,5 +1,9 @@
Name = {{ tinc.name }}
+{% if tinc.listen_on is defined %}
+AddressFamily = {{ tinc.listen_on }}
+{% else %}
AddressFamily = ipv6
+{% endif %}
Interface = tn_int
Mode = switch
{% for conn in tinc.connections %}