]> gitweb.fluxo.info Git - puppet-tor.git/commitdiff
add OutboundBindAddress, default set to $listen_address
authorMicah Anderson <micah@riseup.net>
Wed, 14 Mar 2012 16:45:59 +0000 (12:45 -0400)
committerMicah Anderson <micah@riseup.net>
Wed, 14 Mar 2012 16:45:59 +0000 (12:45 -0400)
manifests/daemon.pp
templates/torrc.relay.erb

index 5f4e06491ca65c43c5eb23b6e8298adac6f19e02..73014b3f6da2458537d6ff44ddf1b48ed7636919 100644 (file)
@@ -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.
index 47548591c542b1cf48eb9f80844d246512432317..72625d4a28ef52205fe61c605e396d6696959408 100644 (file)
@@ -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 -%>