Crates.io | ssping |
lib.rs | ssping |
version | 0.3.0 |
source | src |
created_at | 2024-04-28 05:19:38.125631 |
updated_at | 2024-05-05 05:14:34.84067 |
description | Command-line tool for testing connectivity of Shadowsocks server. |
homepage | |
repository | https://github.com/upsuper/ssping |
max_upload_size | |
id | 1223015 |
size | 95,253 |
Command-line tool for testing connectivity of Shadowsocks server.
ssping ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTpiYXJmb28hQDEyNy4wLjAuMTo4Mzg4
Output:
PING www.google.com via 127.0.0.1.
Status 204 from www.google.com via 127.0.0.1: time=24.5ms
Status 204 from www.google.com via 127.0.0.1: time=33.9ms
Status 204 from www.google.com via 127.0.0.1: time=27.8ms
Status 204 from www.google.com via 127.0.0.1: time=29.0ms
Status 204 from www.google.com via 127.0.0.1: time=29.2ms
Status 204 from www.google.com via 127.0.0.1: time=28.0ms
^C--- ping statistics ---
6 attempted, 6 succeeded, 0 errors, time 5468ms
By default, it continues to send requests until being interrupted by Ctrl-C. The number of requests can be limited so that it ends automatically.
ssping -c 3 ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTpiYXJmb28hQDEyNy4wLjAuMTo4Mzg4
Output:
PING www.google.com via 127.0.0.1.
Status 204 from www.google.com via 127.0.0.1: time=25.7ms
Status 204 from www.google.com via 127.0.0.1: time=24.1ms
Status 204 from www.google.com via 127.0.0.1: time=24.2ms
--- ping statistics ---
3 attempted, 3 succeeded, 0 errors, time 2076ms
By default, it uses http://www.google.com/generate_204
for testing.
This URL may be changed to others, for example
ssping -u http://netcheck.upsuper.org \
ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTpiYXJmb28hQDEyNy4wLjAuMTo4Mzg4
Output:
PING netcheck.upsuper.org via 127.0.0.1.
Status 200 from netcheck.upsuper.org via 127.0.0.1: time=621.2ms
Status 200 from netcheck.upsuper.org via 127.0.0.1: time=404.0ms
Status 200 from netcheck.upsuper.org via 127.0.0.1: time=485.7ms
Status 200 from netcheck.upsuper.org via 127.0.0.1: time=533.8ms
^C--- ping statistics ---
4 attempted, 4 succeeded, 0 errors, time 5292ms
Any URL can work as long as it normally returns a successful HTTP status code (200~299).
0
.1
.2
.