diff options
-rw-r--r-- | roles/router/templates/tinc.conf.j2 | 4 |
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 %} |