mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-03-14 22:48:35 +03:00
[change] control: Remove unuseful check
This commit is contained in:
parent
a8812908c1
commit
91f8ab0549
1 changed files with 6 additions and 8 deletions
14
control.go
14
control.go
|
@ -329,15 +329,13 @@ func handleSetUpstreamConfig(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
// bootstrap servers are plain DNS only. We should remove tls:// https:// and sdns:// hosts from slice
|
||||
bootstraps := []string{}
|
||||
if len(newconfig.bootstrapDNS) > 0 {
|
||||
for _, host := range newconfig.bootstrapDNS {
|
||||
err := checkBootstrapDNS(host)
|
||||
if err != nil {
|
||||
log.Tracef("%s can not be used as bootstrap DNS cause: %s", host, err)
|
||||
continue
|
||||
}
|
||||
bootstraps = append(bootstraps, host)
|
||||
for _, host := range newconfig.bootstrapDNS {
|
||||
err := checkBootstrapDNS(host)
|
||||
if err != nil {
|
||||
log.Tracef("%s can not be used as bootstrap DNS cause: %s", host, err)
|
||||
continue
|
||||
}
|
||||
bootstraps = append(bootstraps, host)
|
||||
}
|
||||
|
||||
config.DNS.BootstrapDNS = defaultBootstrap
|
||||
|
|
Loading…
Add table
Reference in a new issue