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