mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
Avoid duplicate multicast peerings by having the higher key dial the lower one only
This commit is contained in:
parent
04c0acf71b
commit
dc95131da5
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ func (m *Multicast) listen() {
|
||||||
continue
|
continue
|
||||||
case adv.MinorVersion != core.ProtocolVersionMinor:
|
case adv.MinorVersion != core.ProtocolVersionMinor:
|
||||||
continue
|
continue
|
||||||
case adv.PublicKey.Equal(m.core.PublicKey()):
|
case bytes.Compare(adv.PublicKey, m.core.PublicKey()) >= 0:
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
from := fromAddr.(*net.UDPAddr)
|
from := fromAddr.(*net.UDPAddr)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue