]> gitweb.fluxo.info Git - puppet-tor.git/commitdiff
outbound_bindaddress should be outbound_bindaddresses and $outbound_bindaddresses...
authorMicah Anderson <micah@riseup.net>
Wed, 14 Mar 2012 19:29:35 +0000 (15:29 -0400)
committerMicah Anderson <micah@riseup.net>
Wed, 14 Mar 2012 19:29:35 +0000 (15:29 -0400)
manifests/daemon.pp
templates/torrc.relay.erb

index 173e5650d8ed60c6ec20bdfe897e455b88d5b1ed..6d8c315b2993d2f61dfd3f803d166a6d1ef30876 100644 (file)
@@ -98,18 +98,18 @@ 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.
-                $accounting_start      = [],
-                $contact_info          = '',
-                $my_family             = '', # TODO: autofill with other relays
-                $address               = "tor.${domain}",
-                $bridge_relay          = 0,
-                $ensure                = present ) {
+  define relay( $port                    = 0,
+                $listen_addresses        = [],
+                $outbound_bindaddresses  = $listen_addresses,
+                $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.
+                $accounting_start        = [],
+                $contact_info            = '',
+                $my_family               = '', # TODO: autofill with other relays
+                $address                 = "tor.${domain}",
+                $bridge_relay            = 0,
+                $ensure                  = present ) {
     $nickname = $name
 
     concatenated_file_part { '03.relay':
index 72625d4a28ef52205fe61c605e396d6696959408..1b2e0826578bac566e303984f331dbfb1fa7118c 100644 (file)
@@ -4,8 +4,8 @@ ORPort <%= port %>
 <%-   for listen_address in listen_addresses -%>
 ORListenAddress <%= listen_address %>
 <%-   end -%>
-<%-   for outbound_bindaddress in outbound_bindaddress -%>
-OutboundBindAddress <%= outbound_bindaddress %>
+<%-   for outbound_bindaddresses in outbound_bindaddresses -%>
+OutboundBindAddress <%= outbound_bindaddresses %>
 <%-   end -%>
 <%-   if nickname != '' then -%>
 Nickname <%= nickname %>