LocalConnection shouldn't have to know about remote UDP address

...and generally know less about how overlays establish connectivity.
This commit is contained in:
Matthias Radestock committed 2015-11-05 20:43:52 +00:00
1 parent e7ff6a2191
commit 18fe553d23
5 files changed
+32 -23

No files matched your search

+4
View File
@@ -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 {