Update dialer.go

pull/4416/head
风扇滑翔翼 2025-02-24 00:50:26 +08:00 committed by GitHub
parent de83d8cb03
commit 08fbef5012
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 7 deletions

View File

@ -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
}