From: Jacob Nevins Date: Sat, 24 May 2003 10:57:53 +0000 (+0000) Subject: Incorporate matthew.gabeler-lee's suggested fix for badness with multiple X-Git-Tag: r8855-g4f798d~1374 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;ds=sidebyside;h=00faa0232d8a4096d3208fd2a16fd47cafda6a1c;p=PuTTY_svn.git Incorporate matthew.gabeler-lee's suggested fix for badness with multiple exact hostnames in the proxy exclusion list. git-svn-id: http://svn.tartarus.org/sgt/putty@3205 cda61777-01e9-0310-a592-d414129be87e --- 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. */ }