Open danleechina opened 6 years ago
In the SOCKSProxySocket.m source file, when convert address (such as line 192) to NSString, the parameter length passed to initWithBytesNoCopy:length:encoding:freeWhenDone was wrong. It should use something like strlen(address) not INET_ADDRSTRLEN
initWithBytesNoCopy:length:encoding:freeWhenDone
strlen(address)
INET_ADDRSTRLEN
in socksConnect(), need convert the host to ipv4 address , if host is a ip
In the SOCKSProxySocket.m source file, when convert address (such as line 192) to NSString, the parameter length passed to
initWithBytesNoCopy:length:encoding:freeWhenDone
was wrong. It should use something likestrlen(address)
notINET_ADDRSTRLEN