mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 18:45:40 +08:00
fixed parent IPv6 connect proxy
This commit is contained in:
parent
9dda666d8d
commit
7f90b6eae2
@ -50,7 +50,7 @@ int clientnegotiate(struct chain * redir, struct clientparam * param, struct soc
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if(*SAFAMILY(addr) == AF_INET6) buf[len++] = '[';
|
if(*SAFAMILY(addr) == AF_INET6) buf[len++] = '[';
|
||||||
len += myinet_ntop(AF_INET, SAADDR(addr), (char *)buf+len, 256);
|
len += myinet_ntop(*SAFAMILY(addr), SAADDR(addr), (char *)buf+len, 256);
|
||||||
if(*SAFAMILY(addr) == AF_INET6) buf[len++] = ']';
|
if(*SAFAMILY(addr) == AF_INET6) buf[len++] = ']';
|
||||||
}
|
}
|
||||||
len += sprintf((char *)buf + len,
|
len += sprintf((char *)buf + len,
|
||||||
|
Loading…
Reference in New Issue
Block a user