mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-05 07:22:54 +03:00
Pull request: 1868 fix rdns
Merge in DNS/adguard-home from 1868-rdns-ipv6 to master Updates #2943. Updates #2704. Squashed commit of the following: commit 53d67ecf17ed4f9c544344288b58f3596c7246e2 Author: Eugene Burkov <e.burkov@adguard.com> Date: Tue Apr 13 16:18:33 2021 +0300 all: imp code, docs commit 2bc15941b87f92b6fa0a7568538e02700a4385a3 Author: Eugene Burkov <e.burkov@adguard.com> Date: Tue Apr 13 16:09:08 2021 +0300 all: imp code
This commit is contained in:
parent
773f02cf7d
commit
d7b2d63e4c
7 changed files with 85 additions and 8 deletions
internal/home
|
@ -95,10 +95,12 @@ func (r *RDNS) workerLoop() {
|
|||
continue
|
||||
}
|
||||
|
||||
if host != "" {
|
||||
// Don't handle any errors since AddHost doesn't return non-nil
|
||||
// errors for now.
|
||||
_, _ = r.clients.AddHost(ip.String(), host, ClientSourceRDNS)
|
||||
if host == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
// Don't handle any errors since AddHost doesn't return non-nil
|
||||
// errors for now.
|
||||
_, _ = r.clients.AddHost(ip.String(), host, ClientSourceRDNS)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue