Migrate multiplex and UoT server to inbound &

Add tcp-brutal support for multiplex
This commit is contained in:
世界
2023-11-03 01:47:25 +08:00
parent 7a1d146d7d
commit 4b0acd6986
64 changed files with 707 additions and 158 deletions

View File

@@ -54,7 +54,7 @@ func NewSocks(router adapter.Router, logger log.ContextLogger, tag string, optio
client: socks.NewClient(outboundDialer, options.ServerOptions.Build(), version, options.Username, options.Password),
resolve: version == socks.Version4,
}
uotOptions := common.PtrValueOrDefault(options.UDPOverTCPOptions)
uotOptions := common.PtrValueOrDefault(options.UDPOverTCP)
if uotOptions.Enabled {
outbound.uotClient = &uot.Client{
Dialer: outbound.client,