]> sjero.net Git - wget/commitdiff
[svn] retr.c: Changed semantics of no_proxy_match.
authormtortonesi <devnull@localhost>
Wed, 5 Oct 2005 09:46:07 +0000 (02:46 -0700)
committermtortonesi <devnull@localhost>
Wed, 5 Oct 2005 09:46:07 +0000 (02:46 -0700)
src/ChangeLog
src/retr.c

index e02968a8ad9579499a0adf6982f71d8daeabed9f..cd5714b2989b41fb7cfe9226c0720fef3aa1bffb 100644 (file)
@@ -1,3 +1,7 @@
+2005-10-05  Mauro Tortonesi  <mauro@ferrara.linux.it>
+
+       * retr.c: Changed semantics of no_proxy_match.
+
 2005-09-17  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * main.c (main): Don't print the summary if nothing has been downloaded.
index 5360630f6de8a6395460f650fa2f8a8b7851f127..1df7f3bfe58a58a094c3ba350f7e1ef736bc9428 100644 (file)
@@ -978,7 +978,7 @@ getproxy (struct url *u)
 
   if (!opt.use_proxy)
     return NULL;
-  if (!no_proxy_match (u->host, (const char **)opt.no_proxy))
+  if (no_proxy_match (u->host, (const char **)opt.no_proxy))
     return NULL;
 
   switch (u->scheme)
@@ -1018,7 +1018,7 @@ static bool
 no_proxy_match (const char *host, const char **no_proxy)
 {
   if (!no_proxy)
-    return true;
+    return false;
   else
-    return !sufmatch (no_proxy, host);
+    return sufmatch (no_proxy, host);
 }