From 1ff7c1fa70308a50ce4930c1ba6976dce59a7b5d Mon Sep 17 00:00:00 2001 From: mtortonesi Date: Wed, 5 Oct 2005 02:46:07 -0700 Subject: [PATCH] [svn] retr.c: Changed semantics of no_proxy_match. --- src/ChangeLog | 4 ++++ src/retr.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index e02968a8..cd5714b2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2005-10-05 Mauro Tortonesi + + * retr.c: Changed semantics of no_proxy_match. + 2005-09-17 Hrvoje Niksic * main.c (main): Don't print the summary if nothing has been downloaded. diff --git a/src/retr.c b/src/retr.c index 5360630f..1df7f3bf 100644 --- a/src/retr.c +++ b/src/retr.c @@ -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); } -- 2.39.2