mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-15 03:02:07 +03:00
Fix some lint warnings
This commit is contained in:
parent
a2434d4574
commit
4ecb84f9ad
@ -144,7 +144,7 @@ func childwaiter() {
|
|||||||
err := coreDNSCommand.Wait()
|
err := coreDNSCommand.Wait()
|
||||||
log.Printf("coredns unexpectedly died: %s\n", err)
|
log.Printf("coredns unexpectedly died: %s\n", err)
|
||||||
coreDNSCommand.Process.Release()
|
coreDNSCommand.Process.Release()
|
||||||
log.Printf("restarting coredns\n", err)
|
log.Printf("restarting coredns")
|
||||||
err = startDNSServer()
|
err = startDNSServer()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Couldn't restart DNS server: %s\n", err)
|
log.Printf("Couldn't restart DNS server: %s\n", err)
|
||||||
@ -510,7 +510,7 @@ func handleTestUpstreamDNS(w http.ResponseWriter, r *http.Request) {
|
|||||||
result := map[string]string{}
|
result := map[string]string{}
|
||||||
|
|
||||||
for _, host := range hosts {
|
for _, host := range hosts {
|
||||||
err := checkDNS(host)
|
err = checkDNS(host)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
result[host] = err.Error()
|
result[host] = err.Error()
|
||||||
|
Loading…
Reference in New Issue
Block a user