mirror of
https://github.com/antitree/private-tor-network
synced 2024-11-16 04:03:49 +00:00
fixing random if. Thanks @owenson
This commit is contained in:
parent
9d3ef30070
commit
9ee5838a6a
@ -21,7 +21,7 @@ if [ ! -e /tor-config-done ]; then
|
||||
# Updated to handle docker stack/swarm network overlays
|
||||
TOR_IP=$(ip addr show eth1 | grep "inet" | grep -v '\/32'| awk '{print $2}' | cut -f1 -d'/')
|
||||
NICS=$(ip addr | grep 'state UP' | awk '{print $2}' | cut -f1 -d':')
|
||||
if
|
||||
|
||||
echo "Address ${TOR_IP}" >> /etc/tor/torrc
|
||||
echo -e "ControlPort 0.0.0.0:9051" >> /etc/tor/torrc
|
||||
if [ -z "${TOR_CONTROL_PWD}" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user