LocalConnection shouldn't have to know about remote UDP address
...and generally know less about how overlays establish connectivity.
This commit is contained in:
1 parent
e7ff6a2191
commit
18fe553d23
5 files changed
+32
-23
No files matched your search
@@ -104,6 +104,10 @@ func intmac(key uint64) (r net.HardwareAddr) {
|
||||
return
|
||||
}
|
||||
|
||||
func makeUDPAddr(addr *net.TCPAddr) *net.UDPAddr {
|
||||
return &net.UDPAddr{IP: addr.IP, Port: addr.Port, Zone: addr.Zone}
|
||||
}
|
||||
|
||||
type ListOfPeers []*Peer
|
||||
|
||||
func (lop ListOfPeers) Len() int {
|
||||
|
||||
Reference in new issue
Block a user