mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-19 03:58:05 -05:00
IPv4/IPv6 sense problem in SOCKS5 proxying spotted by Andrey Borzenkov --
recent change. [originally from svn r2301]
This commit is contained in:
parent
8ff26fd9e5
commit
93c1b22f0d
2
proxy.c
2
proxy.c
@ -930,7 +930,7 @@ int proxy_socks5_negotiate (Proxy_Socket p, int change)
|
|||||||
char command[22];
|
char command[22];
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
if (sk_addrtype(p->remote_addr) == ADDRTYPE_IPV6) {
|
if (sk_addrtype(p->remote_addr) == ADDRTYPE_IPV4) {
|
||||||
len = 10;
|
len = 10;
|
||||||
command[3] = 1; /* IPv4 */
|
command[3] = 1; /* IPv4 */
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user