Skip to content

Commit f82cc55

Browse files
committed
cmd: 修复 tls ping 部分参数没有生效的问题
1 parent f75e132 commit f82cc55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/pping/cmd/tls.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ func runtls(cmd *cobra.Command, args []string) error {
6565
}
6666
fmt.Printf("Ping %s (%d):\n", host, tlsflag.port)
6767
p := ping.NewTlsPing(host, tlsflag.port, tlsflag.conntime, tlsflag.handtime)
68+
p.TlsVersion = tlsflag.tlsver
69+
p.Insecure = tlsflag.insecure
6870
p.IP = ip
6971
return RunPing(p)
7072
}

0 commit comments

Comments
 (0)