Ticket #4453: 0001-Bug-4453-Set-SOCKS-port-and-host-only-with-recommend_v2.patch

File 0001-Bug-4453-Set-SOCKS-port-and-host-only-with-recommend_v2.patch, 1.4 KB (added by lunar, 8 years ago)
  • src/chrome/content/torbutton.js

    From fb2904eaec26ef5eb4a216acddb5f21acfd5ebb0 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= <lunar@debian.org>
    Date: Fri, 11 Nov 2011 17:49:52 +0100
    Subject: [PATCH] Bug #4453: Set SOCKS port and host only with recommended settings
    
    Both can always be overriden on startup using TOR_SOCKS_* environment
    variables.
    ---
     src/chrome/content/torbutton.js |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/chrome/content/torbutton.js b/src/chrome/content/torbutton.js
    index 966e574..b54524d 100644
    a b function torbutton_do_startup() 
    38913891          if (m_tb_tbb) {
    38923892              m_tb_prefs.setIntPref('network.proxy.socks_port', parseInt(environ.get("TOR_SOCKS_PORT")));
    38933893          }
    3894         } else {
     3894        } else if (m_tb_prefs.getCharPref('extensions.torbutton.settings_method') == 'recommended') {
    38953895          m_tb_prefs.setIntPref('extensions.torbutton.socks_port', 9050);
    38963896        }
    38973897
    function torbutton_do_startup() 
    39003900          if (m_tb_tbb) {
    39013901              m_tb_prefs.setCharPref('network.proxy.socks', environ.get("TOR_SOCKS_HOST"));
    39023902          }
    3903         } else {
     3903        } else if (m_tb_prefs.getCharPref('extensions.torbutton.settings_method') == 'recommended') {
    39043904          m_tb_prefs.setCharPref('extensions.torbutton.socks_host', '127.0.0.1');
    39053905        }
    39063906