5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 01:20:29 +00:00

fix nBytes check in multicast code

This commit is contained in:
Arceliar 2021-06-06 04:48:00 -05:00
parent e7da3d72c4
commit f7607557c1

View File

@ -345,7 +345,7 @@ func (m *Multicast) listen() {
continue
}
}
if len(bs) < ed25519.PublicKeySize {
if nBytes < ed25519.PublicKeySize {
continue
}
var key ed25519.PublicKey