Releases: paradiseduo/tcping
Releases · paradiseduo/tcping
3.7
3.6
Update GCDAsyncSocket
3.5
新增-i --interval参数,可以设置每次tcping的时间间隔,单位为秒,100毫秒可以传0.1
3.2
sudo xattr -rd com.apple.quarantine /usr/local/bin/tcping
Add ipv6 support, like this:
❯ tcping ::1 8080
::1:8080 - Connected - 0.538ms
::1:8080 - Connected - 0.279ms
::1:8080 - Connected - 0.657ms
::1:8080 - Connected - 0.718ms
::1:8080 - Connected - 0.739ms
::1:8080 - Connected - 0.699ms
::1:8080 - Connected - 0.69ms
::1:8080 - Connected - 0.862ms
::1:8080 - Connected - 0.682ms
::1:8080 - Connected - 0.704ms
Ping statistics ::1:8080
10 probes sent.
10 successful, 0 failed.
Approximate trip times:
Minimum = 0.279ms, Maximum = 0.862ms, Average = 0.657ms
3.1
sudo xattr -rd com.apple.quarantine /usr/local/bin/tcping
为解决系统兼容性问题,使用Objective-C重写,这样10.13.6及之前的macOS就可以用啦。
(Swift5写的打包之后不支持10.13.6之前的系统,感谢使用者指出该问题)
优化参数位置,现在可以像这样填参数了:
tcping ip port --count 5
tcping --count 5 port ip
tcping port --count 5 ip
tcping ip --count 5 port
需要注意-c或者--count后面的数字会被判断为测试次数,不要跟端口号搞混了