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

Method peerAPIPortAtomic

wgengine/netstack/netstack.go:1197–1203  ·  view source on GitHub ↗
(ip netip.Addr)

Source from the content-addressed store, hash-verified

1195}
1196
1197func (ns *Impl) peerAPIPortAtomic(ip netip.Addr) *atomic.Uint32 {
1198 if ip.Is4() {
1199 return &ns.peerapiPort4Atomic
1200 } else {
1201 return &ns.peerapiPort6Atomic
1202 }
1203}
1204
1205var viaRange = tsaddr.TailscaleViaRange()
1206

Callers 1

shouldProcessInboundMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected