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

Method isVIPServiceIP

wgengine/netstack/netstack.go:1190–1195  ·  view source on GitHub ↗

isVIPServiceIP reports whether ip is an IP address that's assigned to a VIP service.

(ip netip.Addr)

Source from the content-addressed store, hash-verified

1188// isVIPServiceIP reports whether ip is an IP address that's
1189// assigned to a VIP service.
1190func (ns *Impl) isVIPServiceIP(ip netip.Addr) bool {
1191 if !buildfeatures.HasServe {
1192 return false
1193 }
1194 return ns.atomicIsVIPServiceIPFunc.Load()(ip)
1195}
1196
1197func (ns *Impl) peerAPIPortAtomic(ip netip.Addr) *atomic.Uint32 {
1198 if ip.Is4() {

Callers 3

shouldSendToHostMethod · 0.95
shouldProcessInboundMethod · 0.95

Calls 1

LoadMethod · 0.65

Tested by

no test coverage detected