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 = '';
