tailscale/ipn
Brad Fitzpatrick 84dc891843 cmd/tailscale/cli: add ping subcommand
For example:

$ tailscale ping -h
USAGE
  ping <hostname-or-IP>

FLAGS
  -c 10                   max number of pings to send
  -stop-once-direct true  stop once a direct path is established
  -verbose false          verbose output

$ tailscale ping mon.ts.tailscale.com
pong from monitoring (100.88.178.64) via DERP(sfo) in 65ms
pong from monitoring (100.88.178.64) via DERP(sfo) in 252ms
pong from monitoring (100.88.178.64) via [2604:a880:2:d1::36:d001]:41641 in 33ms

Fixes #661

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2020-08-10 12:50:56 -07:00
..
ipnserver backoff: update to Go style, document a bit, make 30s explicit 2020-08-09 09:36:26 -07:00
ipnstate cmd/tailscale/cli: add ping subcommand 2020-08-10 12:50:56 -07:00
policy ipn, ipn/policy: filter portlist to a short list of "interesting" ports 2020-04-01 10:03:44 -07:00
backend.go cmd/tailscale/cli: add ping subcommand 2020-08-10 12:50:56 -07:00
doc.go Move Linux client & common packages into a public repo. 2020-02-09 09:32:57 -08:00
fake_test.go cmd/tailscale/cli: add ping subcommand 2020-08-10 12:50:56 -07:00
handle.go ipn: add Login backend command for sign-in with token 2020-07-14 13:09:36 +02:00
local.go cmd/tailscale/cli: add ping subcommand 2020-08-10 12:50:56 -07:00
message_test.go ipn: add Login backend command for sign-in with token 2020-07-14 13:09:36 +02:00
message.go cmd/tailscale/cli: add ping subcommand 2020-08-10 12:50:56 -07:00
prefs_test.go ipn: add OSVersion, DeviceModel fields to Prefs and propagate to Hostinfos 2020-07-24 14:12:29 -07:00
prefs.go ipn: add OSVersion, DeviceModel fields to Prefs and propagate to Hostinfos 2020-07-24 14:12:29 -07:00
store_test.go Add tstest.PanicOnLog(), and fix various problems detected by this. 2020-05-13 23:12:35 -04:00
store.go ipn: have NewFileStore try to create directories as needed 2020-03-03 11:51:44 -08:00