summaryrefslogtreecommitdiffstats
path: root/roles/torrelay/templates/torrc.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/torrelay/templates/torrc.j2')
-rw-r--r--roles/torrelay/templates/torrc.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/torrelay/templates/torrc.j2 b/roles/torrelay/templates/torrc.j2
index fafce1f..e3ec7a5 100644
--- a/roles/torrelay/templates/torrc.j2
+++ b/roles/torrelay/templates/torrc.j2
@@ -30,11 +30,11 @@ HiddenServicePort {{ service.port }} {{ service.host }}
{% if orport is defined and dirport is defined %}
ORPort {{ orport }}
-ORPort {{ ansible_default_ipv6.address }}:{{ orport }}
+ORPort [{{ ansible_default_ipv6.address }}]:{{ orport }}
DirPort {{ dirport }}
{% elif orport is defined and dirport is not defined %}
ORPort {{ orport }}
-ORPort {{ ansible_default_ipv6.address }}:{{ orport }}
+ORPort [{{ ansible_default_ipv6.address }}]:{{ orport }}
BridgeRelay 1
{% endif %}