MCPcopy Index your code
hub / github.com/tailscale/tailscale / isLoopback

Function isLoopback

control/controlhttp/client.go:380–385  ·  view source on GitHub ↗
(a net.Addr)

Source from the content-addressed store, hash-verified

378}
379
380func isLoopback(a net.Addr) bool {
381 if ta, ok := a.(*net.TCPAddr); ok {
382 return ta.IP.IsLoopback()
383 }
384 return false
385}
386
387var macOSScreenTime = health.Register(&health.Warnable{
388 Code: "macos-screen-time",

Callers 1

tryURLUpgradeMethod · 0.70

Calls 1

IsLoopbackMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…