changeset 1303:a422b79d70f5

By default, do not use proxy for localhost
author corvid <corvid@lavabit.com>
date Thu, 03 Sep 2009 18:37:06 +0000
parents d5af811c56f9
children 9d82957f8d6a
files ChangeLog dillorc src/prefs.c src/prefs.h
diffstat 4 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Sep 03 18:15:03 2009 +0000
+++ b/ChangeLog	Thu Sep 03 18:37:06 2009 +0000
@@ -29,6 +29,7 @@
  - Allow linebreaks around Chinese/Japanese characters.
  - Fix segfault in Html_parse_doctype (BUG#918).
  - Change exit code used for bad command line argument.
+ - By default, do not use proxy for localhost (BUG 921).
    Patches: corvid
 
 -----------------------------------------------------------------------------
--- a/dillorc	Thu Sep 03 18:15:03 2009 +0000
+++ b/dillorc	Thu Sep 03 18:37:06 2009 +0000
@@ -129,7 +129,7 @@
 
 # Set the domains to access without proxy
 # no_proxy = ".hola.com .mynet.cl .hi.de"
-#(by default, no proxy is used)
+#no_proxy="localhost 127.0.0.1"
 
 # Set the HTTP Referer (sic) header.
 # Note that there is no option to reveal the page that you came from because it
--- a/src/prefs.c	Thu Sep 03 18:15:03 2009 +0000
+++ b/src/prefs.c	Thu Sep 03 18:37:06 2009 +0000
@@ -53,7 +53,7 @@
    prefs.load_stylesheets=TRUE;
    prefs.middle_click_drags_page = TRUE;
    prefs.middle_click_opens_new_tab = TRUE;
-   prefs.no_proxy = NULL;
+   prefs.no_proxy = dStrdup(PREFS_NO_PROXY);
    prefs.panel_size = P_medium;
    prefs.parse_embedded_css=TRUE;
    prefs.save_dir = dStrdup(PREFS_SAVE_DIR);
--- a/src/prefs.h	Thu Sep 03 18:15:03 2009 +0000
+++ b/src/prefs.h	Thu Sep 03 18:37:06 2009 +0000
@@ -30,6 +30,7 @@
 #define PREFS_FONT_FANTASY    "DejaVu Sans" /* TODO: find good default */
 #define PREFS_FONT_MONOSPACE  "DejaVu Sans Mono"
 #define PREFS_SEARCH_URL "http://www.google.com/search?ie=UTF-8&oe=UTF-8&q=%s"
+#define PREFS_NO_PROXY        "localhost 127.0.0.1"
 #define PREFS_SAVE_DIR        "/tmp/"
 #define PREFS_HTTP_REFERER    "host"