mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-25 14:35:48 +03:00
Pull request: home: fix adding client
Merge in DNS/adguard-home from fix-arp-names to master Updates #3597. Squashed commit of the following: commit b4737a342ab4c3685512bd1271a2dc9fa25256d0 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Tue Mar 22 16:55:52 2022 +0300 home: fix adding client
This commit is contained in:
parent
f8e45c13f3
commit
b16b1d1d24
1 changed files with 2 additions and 1 deletions
|
@ -735,6 +735,7 @@ func (clients *clientsContainer) addHostLocked(ip net.IP, host string, src clien
|
|||
return false
|
||||
}
|
||||
|
||||
rc.Host = host
|
||||
rc.Source = src
|
||||
} else {
|
||||
rc = &RuntimeClient{
|
||||
|
@ -829,7 +830,7 @@ func (clients *clientsContainer) addFromSystemARP() {
|
|||
|
||||
added := 0
|
||||
for _, n := range ns {
|
||||
if clients.addHostLocked(n.IP, "", ClientSourceARP) {
|
||||
if clients.addHostLocked(n.IP, n.Name, ClientSourceARP) {
|
||||
added++
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue