Incorporate matthew.gabeler-lee's suggested fix for badness with multiple
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sat, 24 May 2003 10:57:53 +0000 (10:57 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sat, 24 May 2003 10:57:53 +0000 (10:57 +0000)
exact hostnames in the proxy exclusion list.
<OF63043512.26ABC6B9-ON85256D21.006C33C6-85256D21.006C4B81@EU.novartis.net>

git-svn-id: svn://svn.tartarus.org/sgt/putty@3205 cda61777-01e9-0310-a592-d414129be87e

proxy.c

diff --git a/proxy.c b/proxy.c
index 2c0554a..ed25f1a 100644 (file)
--- 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. */
        }