|
@@ -29,7 +29,7 @@
|
29
|
29
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
30
|
30
|
|
31
|
31
|
# The maximum amount of traffic per day in gigabytes
|
32
|
|
-TOR_MAX_TRAFFIC_PER_DAY_GB=3
|
|
32
|
+TOR_MAX_TRAFFIC_PER_MONTH_GB=10
|
33
|
33
|
|
34
|
34
|
HIDDEN_SERVICE_PATH='/var/lib/tor/hidden_service_'
|
35
|
35
|
|
|
@@ -284,8 +284,8 @@ function install_tor {
|
284
|
284
|
sed -i 's|Log notice file.*|Log notice file /dev/null|g' /etc/tor/torrc
|
285
|
285
|
|
286
|
286
|
# Restrict traffic
|
287
|
|
- sed -i "s|#AccountingMax.*|AccountingMax $TOR_MAX_TRAFFIC_PER_DAY_GB GBytes|g" /etc/tor/torrc
|
288
|
|
- sed -i "s|AccountingMax.*|AccountingMax $TOR_MAX_TRAFFIC_PER_DAY_GB GBytes|g" /etc/tor/torrc
|
|
287
|
+ sed -i "s|#AccountingMax.*|AccountingMax $TOR_MAX_TRAFFIC_PER_MONTH_GB GBytes|g" /etc/tor/torrc
|
|
288
|
+ sed -i "s|AccountingMax.*|AccountingMax $TOR_MAX_TRAFFIC_PER_MONTH_GB GBytes|g" /etc/tor/torrc
|
289
|
289
|
|
290
|
290
|
mark_completed $FUNCNAME
|
291
|
291
|
}
|