From 93c1b22f0d86f8e04a02e330452bc923e3f67111 Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Tue, 10 Dec 2002 10:19:51 +0000 Subject: [PATCH] IPv4/IPv6 sense problem in SOCKS5 proxying spotted by Andrey Borzenkov -- recent change. [originally from svn r2301] --- proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {