chrisballinger/ProxyKit

Some Bugs in source code

Opened this issue · 1 comments

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

in socksConnect(), need convert the host to ipv4 address , if host is a ip