This commit is contained in:
Bob Mottram 2016-12-21 15:30:35 +00:00
parent e36c962b7d
commit 65031279b2
1 changed files with 2 additions and 0 deletions

View File

@ -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