1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 07:38:06 -05:00

IPv4/IPv6 sense problem in SOCKS5 proxying spotted by Andrey Borzenkov --

recent change.

[originally from svn r2301]
This commit is contained in:
Jacob Nevins 2002-12-10 10:19:51 +00:00
parent 8ff26fd9e5
commit 93c1b22f0d

View File

@ -930,7 +930,7 @@ int proxy_socks5_negotiate (Proxy_Socket p, int change)
char command[22];
int len;
if (sk_addrtype(p->remote_addr) == ADDRTYPE_IPV6) {
if (sk_addrtype(p->remote_addr) == ADDRTYPE_IPV4) {
len = 10;
command[3] = 1; /* IPv4 */
} else {