ihciah / shadow-tls

A proxy to expose real tls handshake to the firewall
https://www.ihcblog.com/a-better-tls-obfs-proxy/
MIT License
2.32k stars 265 forks source link

feat: support SIP003 #46

Closed kirito41dd closed 1 year ago

kirito41dd commented 1 year ago

支持SIP003

当判断SIP003定义的环境变量都存在时为插件模式,原有参数通过环境变量传递,SS_PLUGIN_OPTIONS变为必选项

server:SS_PLUGIN_OPTIONS="server;passwd=123;tls=xxx.com:443;threads=1"

client:SS_PLUGIN_OPTIONS="passwd=123;host=xxx.com;threads=1"

服务端测试没问题: docker run --rm -it -p 7777:6789/tcp -p 7777:6789/udp kirito41dd/ss-light:v0.1.0-test-tls --log-level=debug -k passwd123 --plugin shadow-tls --plugin-opts 'server;passwd=passwd123;tls=www.baidu.com:443'

docker run --rm -it -e MONOIO_FORCE_LEGACY_DRIVER=1 -p 7777:6789/tcp -p 7777:6789/udp kirito41dd/ss-light:v0.1.0-test-tls --log-level=debug -k passwd123 --plugin shadow-tls --plugin-opts 'server;passwd=passwd123;tls=www.douyin.com:443'

可以部署下上面docker试用下,客户端用小火箭

39

kirito41dd commented 1 year ago

刚测sip003时候,发现的问题

只要看youtube我的ss必有这个报错,ss + v2rayplugin 就没事 图片

ins上视频能看,但是一卡然后重放,能播放下去一会就卡死了,也是上面类似情况感觉

感觉不像我ss的问题,我一台机器开了俩,v2rayplugin很流畅