Comment
This commit is contained in:
parent
e36c962b7d
commit
65031279b2
|
@ -451,6 +451,8 @@ function tor_remove_bridge {
|
||||||
if grep "${bridge_str}" /etc/tor/torrc; then
|
if grep "${bridge_str}" /etc/tor/torrc; then
|
||||||
sed -i "/${bridge_str}/d" /etc/tor/torrc
|
sed -i "/${bridge_str}/d" /etc/tor/torrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If there are no bridges remaining then remove UseBridges
|
||||||
if ! grep "bridge " /etc/tor/torrc; then
|
if ! grep "bridge " /etc/tor/torrc; then
|
||||||
if ! grep "#UseBridges" /etc/tor/torrc; then
|
if ! grep "#UseBridges" /etc/tor/torrc; then
|
||||||
sed -i 's|UseBridges|#UseBridges|g' /etc/tor/torrc
|
sed -i 's|UseBridges|#UseBridges|g' /etc/tor/torrc
|
||||||
|
|
Loading…
Reference in New Issue