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

Method isLocalIP

wgengine/netstack/netstack.go:1184–1186  ·  view source on GitHub ↗

isLocalIP reports whether ip is a Tailscale IP assigned to this node directly (but not a subnet-routed IP).

(ip netip.Addr)

Source from the content-addressed store, hash-verified

1182// isLocalIP reports whether ip is a Tailscale IP assigned to this
1183// node directly (but not a subnet-routed IP).
1184func (ns *Impl) isLocalIP(ip netip.Addr) bool {
1185 return ns.atomicIsLocalIPFunc.Load()(ip)
1186}
1187
1188// isVIPServiceIP reports whether ip is an IP address that's
1189// assigned to a VIP service.

Callers 8

handleLocalPacketsMethod · 0.95
shouldSendToHostMethod · 0.95
isSelfDstMethod · 0.95
shouldProcessInboundMethod · 0.95
acceptTCPMethod · 0.95
forwardUDPMethod · 0.95

Calls 1

LoadMethod · 0.65

Tested by

no test coverage detected