drallieiv / KinanCity

Yet another PTC account generator
Apache License 2.0
125 stars 66 forks source link

feat: socks5 support #37

Closed drallieiv closed 3 years ago

drallieiv commented 7 years ago

Socks5 implementation using fengyouchao's sockslib

neskk commented 7 years ago

I can't use socks5 proxies... was this tested?

08-16 17:16:02 [NurseJoy(Recycler)] Benched proxy recycler started.
Exception in thread "Kinan City" java.lang.NullPointerException
        at sockslib.client.SocksSocket.close(SocksSocket.java:365)
        at sun.security.ssl.BaseSSLSocketImpl.close(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.closeSocket(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.handleException(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.handleException(Unknown Source)
        at sun.security.ssl.AppInputStream.read(Unknown Source)
        at okio.Okio$2.read(Okio.java:138)
        at okio.AsyncTimeout$2.read(AsyncTimeout.java:236)
        at okio.RealBufferedSource.request(RealBufferedSource.java:66)
        at okio.RealBufferedSource.require(RealBufferedSource.java:59)
        at okio.RealBufferedSource.readHexadecimalUnsignedLong(RealBufferedSource.java:284)
        at okhttp3.internal.http1.Http1Codec$ChunkedSource.readChunkSize(Http1Codec.java:444)
        at okhttp3.internal.http1.Http1Codec$ChunkedSource.read(Http1Codec.java:425)
        at okhttp3.internal.Util.skipAll(Util.java:165)
        at okhttp3.internal.Util.discard(Util.java:147)
        at okhttp3.internal.http1.Http1Codec$ChunkedSource.close(Http1Codec.java:462)
        at okio.RealBufferedSource.close(RealBufferedSource.java:434)
        at okhttp3.internal.Util.closeQuietly(Util.java:100)
        at okhttp3.ResponseBody.close(ResponseBody.java:186)
        at okhttp3.Response.close(Response.java:273)
        at com.kinancity.core.proxy.ProxyTester.testProxy(ProxyTester.java:40)
        at com.kinancity.core.Configuration.checkConfiguration(Configuration.java:212)
        at com.kinancity.core.KinanCityCli.main(KinanCityCli.java:59)
javisabalete commented 6 years ago

same problem here