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