From d6f842e3399212ef55eefd55779eded23dcdd479 Mon Sep 17 00:00:00 2001 From: jacob 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. git-svn-id: svn://svn.tartarus.org/sgt/putty@3205 cda61777-01e9-0310-a592-d414129be87e --- 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. */ } -- 2.11.0