From ab1fa13ebebdb153fce3502cbcaa35d88dcd5123 Mon Sep 17 00:00:00 2001 From: AndyChiang888 <92450589+AndyChiang888@users.noreply.github.com> Date: Sun, 7 Sep 2025 21:12:21 +0700 Subject: [PATCH] Commands: Fix "with SNI" printing fixed port 443 for `tls ping` (#5099) --- main/commands/all/tls/ping.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/commands/all/tls/ping.go b/main/commands/all/tls/ping.go index 1e085094..ccc5fe6b 100644 --- a/main/commands/all/tls/ping.go +++ b/main/commands/all/tls/ping.go @@ -92,7 +92,7 @@ func executePing(cmd *base.Command, args []string) { fmt.Println("-------------------") fmt.Println("Pinging with SNI") { - tcpConn, err := net.DialTCP("tcp", nil, &net.TCPAddr{IP: ip, Port: 443}) + tcpConn, err := net.DialTCP("tcp", nil, &net.TCPAddr{IP: ip, Port: TargetPort}) if err != nil { base.Fatalf("Failed to dial tcp: %s", err) }