mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-12-02 14:48:46 +00:00
merge: Merge upstream v1.14.6
This commit is contained in:
@@ -50,11 +50,13 @@ func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextL
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
client := socks.NewClient(outboundDialer, options.ServerOptions.Build(), version, options.Username, options.Password)
|
||||
client.SetHandshakeTimeout(C.TCPTimeout)
|
||||
outbound := &Outbound{
|
||||
Adapter: outbound.NewAdapterWithDialerOptions(C.TypeSOCKS, tag, options.Network.Build(), options.DialerOptions),
|
||||
dnsRouter: service.FromContext[adapter.DNSRouter](ctx),
|
||||
logger: logger,
|
||||
client: socks.NewClient(outboundDialer, options.ServerOptions.Build(), version, options.Username, options.Password),
|
||||
client: client,
|
||||
resolve: version == socks.Version4,
|
||||
}
|
||||
uotOptions := common.PtrValueOrDefault(options.UDPOverTCP)
|
||||
|
||||
Reference in New Issue
Block a user