(remoteIP, localIP netip.Addr)
| 1107 | } |
| 1108 | |
| 1109 | func 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 | |
| 1121 | func copyAtomicValue(dst, src *atomic.Value) { |
| 1122 | if value := src.Load(); value != nil { |
no outgoing calls
searching dependent graphs…