File: localhost-proxy.patch

package info (click to toggle)
torbutton 1.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,888 kB
  • ctags: 997
  • sloc: xml: 2,119; sh: 46; makefile: 11
file content (28 lines) | stat: -rw-r--r-- 1,038 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Use "localhost" instead of "127.0.0.1" as proxy
 As Privoxy in Debian binds on "localhost", defaults Torbutton to use
 "localhost" instead of "127.0.0.1"; fixing issues when IPv6 is enabled.
Bug-Debian: http://bugs.debian.org/518371
Author: Jérémy Bobbio <lunar@debian.org>

--- torbutton-1.2.4.orig/src/chrome/content/torbutton.js
+++ torbutton-1.2.4/src/chrome/content/torbutton.js
@@ -466,7 +466,7 @@ function torbutton_init_prefs() {
 
     if (torprefs.getBoolPref('use_privoxy'))
     {
-        proxy_host = '127.0.0.1';
+        proxy_host = 'localhost';
         proxy_port = 8118;
     }
     else
--- torbutton-1.2.4.orig/src/chrome/content/preferences.js
+++ torbutton-1.2.4/src/chrome/content/preferences.js
@@ -23,7 +23,7 @@ function torbutton_prefs_set_field_attri
     var proxy_port;
     var proxy_host;
     if (doc.getElementById('torbutton_usePrivoxy').checked) {
-        proxy_host = '127.0.0.1';
+        proxy_host = 'localhost';
         proxy_port = 8118;
     } else {
         proxy_host = '';