mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-07 08:23:06 +00:00
fix(c-bindings): check if ENR is nil
This commit is contained in:
parent
4804588197
commit
08bd3a6304
@ -43,7 +43,11 @@ func DnsDiscovery(url string, nameserver string, ms int) string {
|
||||
for _, addr := range n.Addresses {
|
||||
item.Addresses = append(item.Addresses, addr.String())
|
||||
}
|
||||
item.ENR = n.ENR.String()
|
||||
|
||||
if n.ENR != nil {
|
||||
item.ENR = n.ENR.String()
|
||||
}
|
||||
|
||||
response = append(response, item)
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user