diff --git a/src/freedombone-utils-onion b/src/freedombone-utils-onion index 5b4af545..b260a545 100755 --- a/src/freedombone-utils-onion +++ b/src/freedombone-utils-onion @@ -451,6 +451,8 @@ function tor_remove_bridge { if grep "${bridge_str}" /etc/tor/torrc; then sed -i "/${bridge_str}/d" /etc/tor/torrc fi + + # If there are no bridges remaining then remove UseBridges if ! grep "bridge " /etc/tor/torrc; then if ! grep "#UseBridges" /etc/tor/torrc; then sed -i 's|UseBridges|#UseBridges|g' /etc/tor/torrc