Set dns resolver to cloudflare

This commit is contained in:
Andrea Maria Piana 2022-12-07 14:30:03 +00:00
parent 38a4bbf235
commit f98e65258a
1 changed files with 2 additions and 1 deletions

View File

@ -372,7 +372,8 @@ func (w *Waku) dnsDiscover(ctx context.Context, enrtreeAddress string, apply fnA
discNodes, ok := w.dnsAddressCache[enrtreeAddress] discNodes, ok := w.dnsAddressCache[enrtreeAddress]
if !ok { if !ok {
discoveredNodes, err := dnsdisc.RetrieveNodes(ctx, enrtreeAddress) // NOTE: Temporary fix for DNS resolution on android/ios, as gomobile does not support it
discoveredNodes, err := dnsdisc.RetrieveNodes(ctx, enrtreeAddress, dnsdisc.WithNameserver("1.1.1.1"))
if err != nil { if err != nil {
w.logger.Warn("dns discovery error ", zap.Error(err)) w.logger.Warn("dns discovery error ", zap.Error(err))
return return