mirror of https://github.com/status-im/go-waku.git
fix: check if enr has UDP (#316)
This commit is contained in:
parent
b6ff038612
commit
3a38e0e76a
|
@ -67,7 +67,7 @@ func RetrieveNodes(ctx context.Context, url string, opts ...DnsDiscoveryOption)
|
|||
func hasUDP(node *enode.Node) bool {
|
||||
enrUDP := new(enr.UDP)
|
||||
if err := node.Record().Load(enr.WithEntry(enrUDP.ENRKey(), enrUDP)); err != nil {
|
||||
return err == nil
|
||||
return false
|
||||
}
|
||||
return false
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue