From: jacob Date: Sat, 24 May 2003 10:57:53 +0000 (+0000) Subject: Incorporate matthew.gabeler-lee's suggested fix for badness with multiple X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/d6f842e3399212ef55eefd55779eded23dcdd479 Incorporate matthew.gabeler-lee's suggested fix for badness with multiple exact hostnames in the proxy exclusion list. git-svn-id: svn://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. */ }