Bob Mottram 8 years ago
parent
commit
65031279b2
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/freedombone-utils-onion

+ 2
- 0
src/freedombone-utils-onion View File

@@ -451,6 +451,8 @@ function tor_remove_bridge {
451 451
     if grep "${bridge_str}" /etc/tor/torrc; then
452 452
         sed -i "/${bridge_str}/d" /etc/tor/torrc
453 453
     fi
454
+
455
+    # If there are no bridges remaining then remove UseBridges
454 456
     if ! grep "bridge " /etc/tor/torrc; then
455 457
         if ! grep "#UseBridges" /etc/tor/torrc; then
456 458
             sed -i 's|UseBridges|#UseBridges|g' /etc/tor/torrc