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/send.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'device/send.go') diff --git a/device/send.go b/device/send.go index a4f07e4..b05c69e 100644 --- a/device/send.go +++ b/device/send.go @@ -254,14 +254,14 @@ func (device *Device) RoutineReadFromTUN() { continue } dst := elem.packet[IPv4offsetDst : IPv4offsetDst+net.IPv4len] - peer = device.allowedips.LookupIPv4(dst) + peer = device.allowedips.Lookup(dst) case ipv6.Version: if len(elem.packet) < ipv6.HeaderLen { continue } dst := elem.packet[IPv6offsetDst : IPv6offsetDst+net.IPv6len] - peer = device.allowedips.LookupIPv6(dst) + peer = device.allowedips.Lookup(dst) default: device.log.Verbosef("Received packet with unknown IP version") -- cgit v1.2.3-59-g8ed1b