Tor logging

This commit is contained in:
Bob Mottram 2014-12-28 18:27:33 +00:00
parent b94ac8ab22
commit 9706a46a6a
1 changed files with 1 additions and 0 deletions

View File

@ -7023,6 +7023,7 @@ function route_outgoing_traffic_through_tor {
if ! grep -q 'Log notice file /var/log/tor/notices.log' /etc/tor/torrc; then
echo 'Log notice file /var/log/tor/notices.log' >> /etc/tor/torrc
fi
sed -i 's|#Log notice file /var/log/tor/notices.log|Log notice file /var/log/tor/notices.log|g' >> /etc/tor/torrc
if ! grep -q "VirtualAddrNetworkIPv4" /etc/tor/torrc; then
echo 'VirtualAddrNetworkIPv4 10.192.0.0/10' >> /etc/tor/torrc