merge: Merge upstream v1.14.6

This commit is contained in:
Shtorm
2026-11-30 19:46:00 +03:00
292 changed files with 6311 additions and 5159 deletions
+2 -2
View File
@@ -357,6 +357,6 @@ func (h *inboundTransportHandler) NewConnectionEx(ctx context.Context, conn net.
(*Inbound)(h).newConnectionExInternal(ctx, conn, metadata, onClose, false)
}
func (h *Inbound) References() []string {
return h.references
func (h *Inbound) References() ([]string, []string) {
return h.references, nil
}
+8 -5
View File
@@ -69,10 +69,11 @@ func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextL
}
if options.TLS != nil {
outbound.tlsConfig, err = tls.NewClientWithOptions(tls.ClientOptions{
Context: ctx,
Logger: logger,
ServerAddress: options.Server,
Options: common.PtrValueOrDefault(options.TLS),
Context: ctx,
Logger: logger,
ServerAddress: options.Server,
Options: common.PtrValueOrDefault(options.TLS),
DomainResolver: options.DomainResolver,
KTLSCompatible: common.PtrValueOrDefault(options.Transport).Type == "" &&
!common.PtrValueOrDefault(options.Multiplex).Enabled &&
options.Flow == "",
@@ -80,7 +81,9 @@ func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextL
if err != nil {
return nil, err
}
outbound.tlsDialer = tls.NewDialer(outboundDialer, outbound.tlsConfig)
if outbound.tlsConfig != nil {
outbound.tlsDialer = tls.NewDialer(outboundDialer, outbound.tlsConfig)
}
}
if options.Transport != nil {
outbound.transport, err = v2ray.NewClientTransport(ctx, logger, outbound.dialer, outbound.serverAddr, common.PtrValueOrDefault(options.Transport), outbound.tlsConfig)