diff options
-rw-r--r-- | manifests/daemon.pp | 1 | ||||
-rw-r--r-- | templates/torrc.relay.erb | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/manifests/daemon.pp b/manifests/daemon.pp index 5f4e064..73014b3 100644 --- a/manifests/daemon.pp +++ b/manifests/daemon.pp @@ -100,6 +100,7 @@ class tor::daemon inherits tor { # relay definition define relay( $port = 0, $listen_addresses = [], + $outbound_bindaddress = $listen_address, $bandwidth_rate = 0, # KB/s, 0 for no limit. $bandwidth_burst = 0, # KB/s, 0 for no limit. $accounting_max = 0, # GB, 0 for no limit. diff --git a/templates/torrc.relay.erb b/templates/torrc.relay.erb index 4754859..72625d4 100644 --- a/templates/torrc.relay.erb +++ b/templates/torrc.relay.erb @@ -4,6 +4,9 @@ ORPort <%= port %> <%- for listen_address in listen_addresses -%> ORListenAddress <%= listen_address %> <%- end -%> +<%- for outbound_bindaddress in outbound_bindaddress -%> +OutboundBindAddress <%= outbound_bindaddress %> +<%- end -%> <%- if nickname != '' then -%> Nickname <%= nickname %> <%- end -%> |