feat: add mptcp for all proxy

This commit is contained in:
wwqgtxx
2023-08-09 16:57:39 +08:00
parent e2e0fd4eba
commit cc42d787d4
13 changed files with 49 additions and 0 deletions

View File

@ -25,6 +25,7 @@ type option struct {
network int
prefer int
tfo bool
mpTcp bool
resolver resolver.Resolver
netDialer NetDialer
}
@ -83,6 +84,12 @@ func WithTFO(tfo bool) Option {
}
}
func WithMPTCP(mpTcp bool) Option {
return func(opt *option) {
opt.mpTcp = mpTcp
}
}
func WithNetDialer(netDialer NetDialer) Option {
return func(opt *option) {
opt.netDialer = netDialer