Security Fix: Bind ControlPort to 127.0.0.1 for host network mode

This commit is contained in:
wander 2026-02-07 00:30:14 -05:00
parent a369dd48a4
commit f87ec7af08

View file

@ -72,7 +72,7 @@ if [ -n "$TOR_CONTROL_PASSWORD" ]; then
exit 1 exit 1
fi fi
echo "ControlPort 0.0.0.0:9051" >> "$TOR_CONFIG" echo "ControlPort 127.0.0.1:9051" >> "$TOR_CONFIG"
echo "HashedControlPassword $HASHED_PASSWORD" >> "$TOR_CONFIG" echo "HashedControlPassword $HASHED_PASSWORD" >> "$TOR_CONFIG"
echo "Control Password set." echo "Control Password set."
else else