From 4e202f8ed7300103ea4bef1f52c51209cc39c258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Thu, 27 Feb 2025 09:40:20 +0800 Subject: [PATCH] Fix anytls dialer usage --- protocol/anytls/outbound.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/protocol/anytls/outbound.go b/protocol/anytls/outbound.go index ce143bbe..b026ed18 100644 --- a/protocol/anytls/outbound.go +++ b/protocol/anytls/outbound.go @@ -51,8 +51,9 @@ func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextL outbound.tlsConfig = tlsConfig outboundDialer, err := dialer.NewWithOptions(dialer.Options{ - Context: ctx, - Options: options.DialerOptions, + Context: ctx, + Options: options.DialerOptions, + RemoteIsDomain: options.ServerIsDomain(), }) if err != nil { return nil, err