Add support for kTLS

Reference: https://gitlab.com/go-extension/tls
This commit is contained in:
世界
2026-01-17 05:44:42 +08:00
parent f84129ca79
commit 107f92381b
59 changed files with 2682 additions and 222 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextL
key: trojan.Key(options.Password),
}
if options.TLS != nil {
outbound.tlsConfig, err = tls.NewClient(ctx, options.Server, common.PtrValueOrDefault(options.TLS))
outbound.tlsConfig, err = tls.NewClient(ctx, logger, options.Server, common.PtrValueOrDefault(options.TLS))
if err != nil {
return nil, err
}