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:
parent
e43e4c4cd1
commit
2b6fb2ceae
4
proxy.c
4
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. */
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user