]> sjero.net Git - wget/blobdiff - src/retr.c
[svn] retr.c: Changed semantics of no_proxy_match.
[wget] / src / retr.c
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);
 }