mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2024-12-10 22:25:49 +01:00
parent
19dbd13c1b
commit
85d268f2b9
@ -197,6 +197,9 @@ func NewSource(name string, xTransport *XTransport, urls []string, minisignKeySt
|
||||
return source, err
|
||||
}
|
||||
source.parseURLs(urls)
|
||||
rand.Shuffle(len(source.urls), func(i, j int) {
|
||||
source.urls[i], source.urls[j] = source.urls[j], source.urls[i]
|
||||
})
|
||||
if _, err = source.fetchWithCache(xTransport, timeNow()); err == nil {
|
||||
dlog.Noticef("Source [%s] loaded", name)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user