Change TOR circuit to 5 min
This commit is contained in:
parent
f3f9e3c9ce
commit
748dc10907
@ -78,11 +78,15 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$ROUTE_TOR" = 1 ] || [ "$ROUTE_TOR" = 2 ]; then
|
if [ "$ROUTE_TOR" = 1 ] || [ "$ROUTE_TOR" = 2 ]; then
|
||||||
cat > /etc/torrc <<- EOF
|
cat > /etc/tor/torrc <<- EOF
|
||||||
Log notice stdout
|
Log notice stdout
|
||||||
SocksPort 9050 # Default: Bind to localhost:9050 for local connections.
|
SocksPort 9050 # Default: Bind to localhost:9050 for local connections.
|
||||||
|
MaxCircuitDirtiness 300
|
||||||
|
CircuitBuildTimeout 300
|
||||||
|
ExcludeExitNodes {US}
|
||||||
|
StrictNodes 1
|
||||||
EOF
|
EOF
|
||||||
tor -f /etc/torrc --runasdaemon 1
|
tor -f /etc/tor/torrc --runasdaemon 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec /usr/bin/python3 /srv/app/server.py
|
exec /usr/bin/python3 /srv/app/server.py
|
||||||
|
Loading…
x
Reference in New Issue
Block a user