MCPcopy Create free account
hub / github.com/celzero/firestack / makeIPPorts

Function makeIPPorts

intra/common.go:607–654  ·  view source on GitHub ↗

makeIPPorts returns a slice of valid, non-zero at most cap AddrPorts. The first element may be origipp AddrPort, if realips is empty or contains only unspecified IPs. or maybeIncludeOrig is true and origipp's IP family is included in dialer's current config.

(ips []netip.Addr, origipp netip.AddrPort, maybeIncludeOrig bool, cap int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

oneRealIPPortFunction · 0.85
ConnectMethod · 0.85
ProxyMethod · 0.85

Calls 6

Use4Function · 0.92
Use6Function · 0.92
VVFunction · 0.92
ShuffleInPlaceFunction · 0.92
AddrMethod · 0.80
PortMethod · 0.45

Tested by

no test coverage detected