1
0
mirror of https://github.com/rancher/os.git synced 2025-07-31 06:32:09 +00:00

Fix network caching

This commit is contained in:
Josh Curl 2016-06-09 16:27:47 -07:00
parent 77612b87c5
commit b436cdff4d
No known key found for this signature in database
GPG Key ID: 82B504B9BCCFA677

View File

@ -55,6 +55,11 @@ func getServices(urls []string, key string) ([]string, error) {
}
func loadFromNetwork(location string) ([]byte, error) {
bytes := cacheLookup(location)
if bytes != nil {
return bytes, nil
}
var err error
for i := 0; i < 300; i++ {
net.UpdateDnsConf()