aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-07-16 14:02:07 -0400
committerNick Mathewson <nickm@torproject.org>2009-07-16 14:02:07 -0400
commit82795eebb75e2c60b9a294a27100c3f19021dde5 (patch)
tree1cb69c1823c159c0beb7b0590bada9a565ad6cf6 /src/config
parent989e74e5c0f00b0b423b79ecf34c1e28fe6ab356 (diff)
downloadtor-82795eebb75e2c60b9a294a27100c3f19021dde5.tar
tor-82795eebb75e2c60b9a294a27100c3f19021dde5.tar.gz
Include AccountingMax in torrc.sample
"There's room for one more till the end of creation." -- _Sandman_ (Based on patch from David [edeca]. Closes bug 1036.)
Diffstat (limited to 'src/config')
-rw-r--r--src/config/torrc.sample.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/config/torrc.sample.in b/src/config/torrc.sample.in
index d0b1ee159..9250d1eb5 100644
--- a/src/config/torrc.sample.in
+++ b/src/config/torrc.sample.in
@@ -99,6 +99,19 @@ SocksListenAddress 127.0.0.1 # accept connections only from localhost
#RelayBandwidthRate 100 KBytes # Throttle traffic to 100KB/s (800Kbps)
#RelayBandwidthBurst 200 KBytes # But allow bursts up to 200KB/s (1600Kbps)
+## Use these to restrict the maximum traffic per day, week, or month.
+## Note that this threshold applies to sent _and_ to received bytes,
+## not to their sum: Setting "1 GB" may allow up to 2 GB total before
+## hibernating.
+##
+## Set a maximum of 1 gigabyte per period.
+#AccountingMax 1 GB
+## Each period starts daily at midnight (AccountingMax is per day)
+#AccountingStart day 00:00
+## Each period starts on the 3rd of the month at 15:00 (AccountingMax
+## is per month)
+#AccountingStart month 3 15:00
+
## Contact info to be published in the directory, so we can contact you
## if your relay is misconfigured or something else goes wrong. Google
## indexes this, so spammers might also collect it.