summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2012-01-11 02:24:57 -0200
committerdrebs <drebs@riseup.net>2012-01-11 02:24:57 -0200
commitfe15c0625244c43d977fef2831720d01dc921f2b (patch)
tree646c2779bdc302dfbc9e0710dbb5f9d8254ac322
parentdebb1877f556b312bf23533f93c0cbe5fed55751 (diff)
fixing parameter name
-rw-r--r--manifests/daemon.pp4
-rw-r--r--templates/torrc.relay.erb8
2 files changed, 6 insertions, 6 deletions
diff --git a/manifests/daemon.pp b/manifests/daemon.pp
index c522e9f..6ac6dec 100644
--- a/manifests/daemon.pp
+++ b/manifests/daemon.pp
@@ -96,8 +96,8 @@ class tor::daemon inherits tor {
# relay definition
define relay( $port = 0,
$listen_addresses = [],
- $relay_bandwidth_rate = 0, # KB/s, 0 for no limit.
- $relay_bandwidth_burst = 0, # KB/s, 0 for no limit.
+ $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 = '',
diff --git a/templates/torrc.relay.erb b/templates/torrc.relay.erb
index 95496d6..2aee354 100644
--- a/templates/torrc.relay.erb
+++ b/templates/torrc.relay.erb
@@ -11,11 +11,11 @@ Nickname <%= nickname %>
<%- if address != '' then -%>
Address <%= address %>
<%- end -%>
-<%- if relay_bandwidth_rate != '0' then -%>
-RelayBandwidthRate <%= relay_bandwidth_rate %> KB
+<%- if bandwidth_rate != '0' then -%>
+RelayBandwidthRate <%= bandwidth_rate %> KB
<%- end -%>
-<%- if relay_bandwidth_burst != '0' then -%>
-RelayBandwidthBurst <%= relay_bandwidth_burst %> KB
+<%- if bandwidth_burst != '0' then -%>
+RelayBandwidthBurst <%= bandwidth_burst %> KB
<%- end -%>
<%- if accounting_max != '0' then -%>
AccountingMax <%= accounting_max %> GB