From e51aba717bde936899c7c6b2010346e06471130f Mon Sep 17 00:00:00 2001 From: Skyxim Date: Tue, 18 Oct 2022 20:40:48 +0800 Subject: [PATCH] fix: remove port check --- outbound/default.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/outbound/default.go b/outbound/default.go index 73d1f70e..c38aff3f 100644 --- a/outbound/default.go +++ b/outbound/default.go @@ -79,7 +79,7 @@ func NewEarlyConnection(ctx context.Context, this N.Dialer, conn net.Conn, metad func NewPacketConnection(ctx context.Context, this N.Dialer, conn N.PacketConn, metadata adapter.InboundContext) error { switch metadata.Protocol { case C.ProtocolQUIC, C.ProtocolDNS: - if !metadata.Destination.Addr.IsUnspecified() && metadata.Destination.Port != 0 { + if !metadata.Destination.Addr.IsUnspecified() { return connectPacketConnection(ctx, this, conn, metadata) } }