From a29b4ea1e8100bfcf0204bdc0898bccc81b39fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9C=9F?= <53256630+makt28@users.noreply.github.com> Date: Mon, 3 Aug 2026 12:41:38 +0800 Subject: [PATCH] Fix AnyTLS URLTest results Co-authored-by: makt28 --- protocol/anytls/outbound.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/protocol/anytls/outbound.go b/protocol/anytls/outbound.go index 8a2d7a9c..7f03c8f6 100644 --- a/protocol/anytls/outbound.go +++ b/protocol/anytls/outbound.go @@ -26,6 +26,8 @@ func RegisterOutbound(registry *outbound.Registry) { outbound.Register[option.AnyTLSOutboundOptions](registry, C.TypeAnyTLS, NewOutbound) } +var _ adapter.OutboundWithMultiplex = (*Outbound)(nil) + type Outbound struct { outbound.Adapter dialer tls.Dialer @@ -122,6 +124,10 @@ func (h *Outbound) dialOut(ctx context.Context) (net.Conn, error) { return h.dialer.DialTLSContext(ctx, h.server) } +func (h *Outbound) MultiplexEnabled() bool { + return true +} + func (h *Outbound) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error) { ctx, metadata := adapter.ExtendContext(ctx) metadata.Outbound = h.Tag()