mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-10 17:45:41 +03:00
Pull request: 5035-netip-maps-clients
Updates #5035. Squashed commit of the following: commit c2d38fe75b8aa2f00b19892724984ed3bb843db5 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Oct 24 16:50:14 2022 +0300 home: move clients to netip.Addr
This commit is contained in:
parent
a272b61ed6
commit
cebbb69a4c
5 changed files with 53 additions and 69 deletions
internal/home
|
@ -5,6 +5,7 @@ import (
|
|||
"encoding/binary"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/netip"
|
||||
"sync"
|
||||
"testing"
|
||||
"time"
|
||||
|
@ -88,7 +89,7 @@ func TestRDNS_Begin(t *testing.T) {
|
|||
clients: &clientsContainer{
|
||||
list: map[string]*Client{},
|
||||
idIndex: tc.cliIDIndex,
|
||||
ipToRC: netutil.NewIPMap(0),
|
||||
ipToRC: map[netip.Addr]*RuntimeClient{},
|
||||
allTags: stringutil.NewSet(),
|
||||
},
|
||||
}
|
||||
|
@ -228,7 +229,7 @@ func TestRDNS_WorkerLoop(t *testing.T) {
|
|||
cc := &clientsContainer{
|
||||
list: map[string]*Client{},
|
||||
idIndex: map[string]*Client{},
|
||||
ipToRC: netutil.NewIPMap(0),
|
||||
ipToRC: map[netip.Addr]*RuntimeClient{},
|
||||
allTags: stringutil.NewSet(),
|
||||
}
|
||||
ch := make(chan net.IP)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue