我已经设置java使用反射调用java.net.SocksSocketImpl #setV4来使用SOCK4。我和Socks5的连接工作得很好,但是对于Socks 4,我得到了许多Socket Exceptions。例如:
java.net.SocketException: Malformed reply from SOCKS server
at java.net.SocksSocketImpl.readSocksReply(Unknown Source)
at java.net.SocksSocketImpl.connectV4(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
有什么想法吗?