summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-03-14 12:45:59 -0400
committerMicah Anderson <micah@riseup.net>2012-03-14 12:45:59 -0400
commitb57819f650bc412f458a3b37620f557b5be7495a (patch)
tree1615661dc82514521501439fe3570269d9752fd0
parentb4c9d401bdffe71fd085702ce2e346c9b46c179f (diff)
add OutboundBindAddress, default set to $listen_address
-rw-r--r--manifests/daemon.pp1
-rw-r--r--templates/torrc.relay.erb3
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 -%>