chore: disable fallback mode of tfo dialer

tfo-go caches the "unsupported" status when fallback mode is enabled.
In other words, if the hysteria server is started with
net.ipv4.tcp_fastopen=0 and it fails once, the tfo will not be enabled
until it is restarted, even if the user later sets sysctl
net.ipv4.tcp_fastopen=3.
This commit is contained in:
Haruue 2024-11-23 22:31:14 +09:00
parent 16c964b3e1
commit d8c61c59d7
No known key found for this signature in database
GPG key ID: F6083B28CBCBC148

View file

@ -15,8 +15,7 @@ type fastOpenDialer struct {
func newFastOpenDialer(netDialer *net.Dialer) *fastOpenDialer {
return &fastOpenDialer{
dialer: &tfo.Dialer{
Dialer: *netDialer,
Fallback: true,
Dialer: *netDialer,
},
}
}