MCPcopy Create free account
hub / github.com/pion/ice / remoteDialIPForLocalInterface

Function remoteDialIPForLocalInterface

agent.go:1109–1119  ·  view source on GitHub ↗
(remoteIP, localIP netip.Addr)

Source from the content-addressed store, hash-verified

1107}
1108
1109func remoteDialIPForLocalInterface(remoteIP, localIP netip.Addr) netip.Addr {
1110 if remoteIP.Is6() &&
1111 remoteIP.Zone() == "" &&
1112 (remoteIP.IsLinkLocalUnicast() || remoteIP.IsLinkLocalMulticast()) {
1113 if zone := localIP.Zone(); zone != "" {
1114 return remoteIP.WithZone(zone)
1115 }
1116 }
1117
1118 return remoteIP
1119}
1120
1121func copyAtomicValue(dst, src *atomic.Value) {
1122 if value := src.Load(); value != nil {

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…