From 841756e328c743fec624e9259921ea6d815911d5 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 3 Jun 2021 16:12:29 +0200 Subject: device: simplify allowedips lookup signature The inliner should handle this for us. Signed-off-by: Jason A. Donenfeld --- device/allowedips_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'device/allowedips_test.go') diff --git a/device/allowedips_test.go b/device/allowedips_test.go index cbd32cc..7701cde 100644 --- a/device/allowedips_test.go +++ b/device/allowedips_test.go @@ -102,14 +102,14 @@ func TestTrieIPv4(t *testing.T) { } assertEQ := func(peer *Peer, a, b, c, d byte) { - p := allowedIPs.LookupIPv4([]byte{a, b, c, d}) + p := allowedIPs.Lookup([]byte{a, b, c, d}) if p != peer { t.Error("Assert EQ failed") } } assertNEQ := func(peer *Peer, a, b, c, d byte) { - p := allowedIPs.LookupIPv4([]byte{a, b, c, d}) + p := allowedIPs.Lookup([]byte{a, b, c, d}) if p == peer { t.Error("Assert NEQ failed") } @@ -208,7 +208,7 @@ func TestTrieIPv6(t *testing.T) { addr = append(addr, expand(b)...) addr = append(addr, expand(c)...) addr = append(addr, expand(d)...) - p := allowedIPs.LookupIPv6(addr) + p := allowedIPs.Lookup(addr) if p != peer { t.Error("Assert EQ failed") } -- cgit v1.2.3-59-g8ed1b