diff options
Diffstat (limited to 'device/allowedips_rand_test.go')
-rw-r--r-- | device/allowedips_rand_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/device/allowedips_rand_test.go b/device/allowedips_rand_test.go index c5f80fe..8d1e633 100644 --- a/device/allowedips_rand_test.go +++ b/device/allowedips_rand_test.go @@ -108,7 +108,7 @@ func TestTrieRandom(t *testing.T) { var addr4 [4]byte rand.Read(addr4[:]) peer1 := slow4.Lookup(addr4[:]) - peer2 := allowedIPs.LookupIPv4(addr4[:]) + peer2 := allowedIPs.Lookup(addr4[:]) if peer1 != peer2 { t.Errorf("Trie did not match naive implementation, for %v: want %p, got %p", net.IP(addr4[:]), peer1, peer2) } @@ -116,7 +116,7 @@ func TestTrieRandom(t *testing.T) { var addr6 [16]byte rand.Read(addr6[:]) peer1 = slow6.Lookup(addr6[:]) - peer2 = allowedIPs.LookupIPv6(addr6[:]) + peer2 = allowedIPs.Lookup(addr6[:]) if peer1 != peer2 { t.Errorf("Trie did not match naive implementation, for %v: want %p, got %p", net.IP(addr6[:]), peer1, peer2) } |