Skip to content
Snippets Groups Projects
Commit 65031279 authored by Bob Mottram's avatar Bob Mottram
Browse files

Comment

parent e36c962b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment