p4gefau1t / trojan-go

Go实现的Trojan代理,支持多路复用/路由功能/CDN中转/Shadowsocks混淆插件,多平台,无依赖。A Trojan proxy written in Go. An unidentifiable mechanism that helps you bypass GFW. https://p4gefau1t.github.io/trojan-go/
GNU General Public License v3.0
7.54k stars 1.64k forks source link

ADD TFO for client and server #527

Open lbsystem opened 3 months ago

lbsystem commented 3 months ago

The server side is set to default for TFO (TCP Fast Open) while also being compatible with regular TCP connections. The client side has added a TFO Dial method.

Potterli20 commented 3 months ago

可以搞tfo6? fork 项目已经pr了https://github.com/Potterli20/trojan-go-fork

lbsystem commented 3 months ago

可以搞tfo6? the new Pr is done you can merge it 2408::1.50026 > 2406::3103.33322: Flags [S], cksum 0x14b8 (correct), seq 3276465337:3276465605, win 64440, options [mss 1432,sackOK,TS val 3209408609 ecr 0,nop,wscale 5,tfo cookie 332055228bbb9abf,nop,nop], length 268 03:42:57.426142 IP6 (flowlabel 0x00c6e, hlim 47, next-header TCP (6) payload length: 32) 2408::1.50026 > 2406::3103.33322: Flags [.], cksum 0x1677 (correct), seq 3276465606, ack 2233951856, win 2014, options [nop,nop,TS val 3209408668 ecr 3249499511], length 0

Potterli20 commented 3 months ago

可以搞tfo6? the new Pr is done you can merge it 2408::1.50026 > 2406::3103.33322: Flags [S], cksum 0x14b8 (correct), seq 3276465337:3276465605, win 64440, options [mss 1432,sackOK,TS val 3209408609 ecr 0,nop,wscale 5,tfo cookie 332055228bbb9abf,nop,nop], length 268 03:42:57.426142 IP6 (flowlabel 0x00c6e, hlim 47, next-header TCP (6) payload length: 32) 2408::1.50026 > 2406::3103.33322: Flags [.], cksum 0x1677 (correct), seq 3276465606, ack 2233951856, win 2014, options [nop,nop,TS val 3209408668 ecr 3249499511], length 0

okok