mirror of
https://github.com/rancher/os.git
synced 2025-09-01 23:04:41 +00:00
Go DNS patch based on build tag
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"net/http"
|
||||
"os"
|
||||
"strings"
|
||||
@@ -87,7 +86,7 @@ func loadFromNetwork(location string) ([]byte, error) {
|
||||
|
||||
var err error
|
||||
for i := 0; i < 300; i++ {
|
||||
net.UpdateDnsConf()
|
||||
updateDNSCache()
|
||||
|
||||
var resp *http.Response
|
||||
resp, err = http.Get(location)
|
||||
|
Reference in New Issue
Block a user