mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-08-04 15:19:13 +00:00
Commands: Fix "with SNI" printing fixed port 443 for tls ping (#5099)
This commit is contained in:
parent
4740ba2425
commit
ab1fa13ebe
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue