mirror of
https://github.com/rancher/os.git
synced 2025-08-01 06:59:05 +00:00
Fix network caching
This commit is contained in:
parent
77612b87c5
commit
b436cdff4d
@ -55,6 +55,11 @@ func getServices(urls []string, key string) ([]string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func loadFromNetwork(location string) ([]byte, error) {
|
func loadFromNetwork(location string) ([]byte, error) {
|
||||||
|
bytes := cacheLookup(location)
|
||||||
|
if bytes != nil {
|
||||||
|
return bytes, nil
|
||||||
|
}
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
for i := 0; i < 300; i++ {
|
for i := 0; i < 300; i++ {
|
||||||
net.UpdateDnsConf()
|
net.UpdateDnsConf()
|
||||||
|
Loading…
Reference in New Issue
Block a user