From: jacob Date: Tue, 10 Dec 2002 10:19:51 +0000 (+0000) Subject: IPv4/IPv6 sense problem in SOCKS5 proxying spotted by Andrey Borzenkov -- X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/f74d67ca5f2260011b0ec0230339209968bae7f1 IPv4/IPv6 sense problem in SOCKS5 proxying spotted by Andrey Borzenkov -- recent change. git-svn-id: svn://svn.tartarus.org/sgt/putty@2301 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/proxy.c b/proxy.c index d1f842d6..475dc4a5 100644 --- a/proxy.c +++ b/proxy.c @@ -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 {