diff options
author | intrigeri <intrigeri@boum.org> | 2012-04-26 17:22:15 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2012-04-26 17:22:15 +0200 |
commit | 9074e56dd294b7d150ede1a06501c966393e21e6 (patch) | |
tree | a7ba8b0485eca169ee39c4207d3e76219928a98e /manifests | |
parent | bc0c42ef3de9c0330d8fe5bc90b793327e06d8da (diff) | |
parent | 8e0dbb0d9d903fbf89e4263cd29c1b1a7d597075 (diff) | |
download | puppet-tor-9074e56dd294b7d150ede1a06501c966393e21e6.tar.gz puppet-tor-9074e56dd294b7d150ede1a06501c966393e21e6.tar.bz2 |
Merge branch 'bugfix/outbound_bindaddresses-default'
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/daemon.pp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/daemon.pp b/manifests/daemon.pp index 6d8c315..dddef14 100644 --- a/manifests/daemon.pp +++ b/manifests/daemon.pp @@ -100,7 +100,7 @@ class tor::daemon inherits tor { # relay definition define relay( $port = 0, $listen_addresses = [], - $outbound_bindaddresses = $listen_addresses, + $outbound_bindaddresses = [], $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. @@ -112,6 +112,12 @@ class tor::daemon inherits tor { $ensure = present ) { $nickname = $name + if $outbound_bindaddresses == [] { + $real_outbound_bindaddresses = $listen_addresses + } else { + $real_outbound_bindaddresses = $outbound_bindaddresses + } + concatenated_file_part { '03.relay': dir => $tor::daemon::snippet_dir, content => template('tor/torrc.relay.erb'), |