From 08fbef50126503dbef3e7f13f277dae1e7efdf06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E6=89=87=E6=BB=91=E7=BF=94=E7=BF=BC?= Date: Mon, 24 Feb 2025 00:50:26 +0800 Subject: [PATCH] Update dialer.go --- transport/internet/dialer.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/transport/internet/dialer.go b/transport/internet/dialer.go index dccc2d30..c7bfac4a 100644 --- a/transport/internet/dialer.go +++ b/transport/internet/dialer.go @@ -143,12 +143,6 @@ func redirect(ctx context.Context, dst net.Destination, obt string) net.Conn { return nil } -// SrvPortOnly = 1; -// SrvAddressOnly = 2; -// SrvPortAndAddress = 3; -// TxtPortOnly = 4; -// TxtAddressOnly = 5; -// TxtPortAndAddress = 6; func checkDestinationStrategy(ctx context.Context, dest net.Destination, sockopt *SocketConfig) (*net.Destination, error) { if sockopt.DestinationStrategy == DestinationStrategy_None { return nil, nil @@ -226,7 +220,6 @@ func checkDestinationStrategy(ctx context.Context, dest net.Destination, sockopt continue } - newDest := dest if OverridePort { newDest.Port = port }