From 2b6fb2ceae44ff41b21ce603840d807e8eddcc37 Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Sat, 24 May 2003 10:57:53 +0000 Subject: [PATCH] Incorporate matthew.gabeler-lee's suggested fix for badness with multiple exact hostnames in the proxy exclusion list. [originally from svn r3205] --- proxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy.c b/proxy.c index 2c0554ad..ed25f1a4 100644 --- a/proxy.c +++ b/proxy.c @@ -318,9 +318,9 @@ static int proxy_for_destination (SockAddr addr, char *hostname, int port, * match (ie. a specific IP) */ - if (addr && stricmp(hostip, exclude_list + s) == 0) + if (addr && strnicmp(hostip, exclude_list + s, e - s) == 0) return 0; /* IP/hostname excluded. do not use proxy. */ - if (stricmp(hostname, exclude_list + s) == 0) + if (strnicmp(hostname, exclude_list + s, e - s) == 0) return 0; /* IP/hostname excluded. do not use proxy. */ }