feat(tsconnect): add whoIs, queryDNS, ping, suggestExitNode WASM bindings, peerAPI/localAPI access #5

Merged
codinget merged 4 commits from feat/query-utils into webnet 2026-05-11 22:51:27 +02:00
Showing only changes of commit 52cae45f81 - Show all commits
+1 -1
View File
@@ -1278,7 +1278,7 @@ func (i *jsIPN) ping(ip string, pingType string, size int) js.Value {
case tailcfg.PingDisco, tailcfg.PingTSMP, tailcfg.PingICMP, tailcfg.PingPeerAPI:
// valid
default:
return nil, fmt.Errorf("ping: unknown type %q, must be one of: disco, TSMP, icmp, peerapi", pingType)
return nil, fmt.Errorf("ping: unknown type %q, must be one of: disco, TSMP, ICMP, peerapi", pingType)
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()