mirror of https://github.com/status-im/go-waku.git
fix: empty bytes in enr multiaddress (#442)
This commit is contained in:
parent
7508b08c74
commit
1cebf21942
|
@ -75,7 +75,7 @@ func Multiaddress(node *enode.Node) ([]multiaddr.Multiaddr, error) {
|
|||
if err := node.Record().Load(enr.WithEntry(MultiaddrENRField, &multiaddrRaw)); err != nil {
|
||||
if !enr.IsNotFound(err) {
|
||||
return nil, err
|
||||
} else {
|
||||
} else if len(multiaddrRaw) == 0 {
|
||||
// No multiaddr entry on enr
|
||||
return result, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue