1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-09 15:18:06 -05:00

Incorporate matthew.gabeler-lee's suggested fix for badness with multiple

exact hostnames in the proxy exclusion list.
<OF63043512.26ABC6B9-ON85256D21.006C33C6-85256D21.006C4B81@EU.novartis.net>

[originally from svn r3205]
This commit is contained in:
Jacob Nevins 2003-05-24 10:57:53 +00:00
parent e43e4c4cd1
commit 2b6fb2ceae

View File

@ -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. */
}