Fix naive network
This commit is contained in:
parent
48b7adde7d
commit
750dc9c3e0
1 changed files with 7 additions and 1 deletions
|
|
@ -204,8 +204,14 @@ func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextL
|
|||
Version: uotOptions.Version,
|
||||
}
|
||||
}
|
||||
var networks []string
|
||||
if uotClient != nil {
|
||||
networks = []string{N.NetworkTCP, N.NetworkUDP}
|
||||
} else {
|
||||
networks = []string{N.NetworkTCP}
|
||||
}
|
||||
return &Outbound{
|
||||
Adapter: outbound.NewAdapterWithDialerOptions(C.TypeNaive, tag, []string{N.NetworkTCP}, options.DialerOptions),
|
||||
Adapter: outbound.NewAdapterWithDialerOptions(C.TypeNaive, tag, networks, options.DialerOptions),
|
||||
ctx: ctx,
|
||||
logger: logger,
|
||||
client: client,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue