[change] control: Remove unuseful check
This commit is contained in:
parent
a8812908c1
commit
91f8ab0549
@ -329,7 +329,6 @@ func handleSetUpstreamConfig(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
// bootstrap servers are plain DNS only. We should remove tls:// https:// and sdns:// hosts from slice
|
// bootstrap servers are plain DNS only. We should remove tls:// https:// and sdns:// hosts from slice
|
||||||
bootstraps := []string{}
|
bootstraps := []string{}
|
||||||
if len(newconfig.bootstrapDNS) > 0 {
|
|
||||||
for _, host := range newconfig.bootstrapDNS {
|
for _, host := range newconfig.bootstrapDNS {
|
||||||
err := checkBootstrapDNS(host)
|
err := checkBootstrapDNS(host)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -338,7 +337,6 @@ func handleSetUpstreamConfig(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
bootstraps = append(bootstraps, host)
|
bootstraps = append(bootstraps, host)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
config.DNS.BootstrapDNS = defaultBootstrap
|
config.DNS.BootstrapDNS = defaultBootstrap
|
||||||
if len(bootstraps) > 0 {
|
if len(bootstraps) > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user