ksfzhaohui / shadowsocks-netty Goto Github PK
View Code? Open in Web Editor NEW基于netty4的shadowsocks客户端
Home Page: https://my.oschina.net/OutOfMemory/blog/744475
基于netty4的shadowsocks客户端
Home Page: https://my.oschina.net/OutOfMemory/blog/744475
启动参数:-Dio.netty.leakDetectionLevel=advanced
定位代码到:CryptUtil.java的decrypt方法的bytebuff.getBytes(0, arr);
2018-05-05 12:27:43 [main] 67::: INFO org.netty.config.ConfigXmlLoader - load config !
2018-05-05 12:27:43 [main] 91::: INFO org.netty.config.PacLoader - load pac !
2018-05-05 12:27:43 [main] 62::: INFO org.netty.SocksServer - Start At Port 1080
请问“请求其实就是pc发送给ss local的消息,只不过需要跳过前面的3个字节”这里为什么要跳过前面3个字节呢?ss local跟ss server连接请求时不用发送 VER | CMD | RSV 这3个字节吗?
SocksServerConnectHandler channelRead0方法触发时,SocksCmdRequest对象里的host已经在本地被解析成ip形式。这时请求包到了ssserver,如果ssserver访问不了这个ip,就访问不通了。比方google
我自己本地的shadowsocks客户端访问远程ssserver的时候,ssserver打出来的日志收到的是域名形式,再由ssserver去访问这个域名。
想请教下楼主这种情况怎么处理,感谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.