From a2cbc62521c0e5676a25d29dd2d95a1fdb06c97f Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 11 Dec 2023 10:13:14 +0100 Subject: [PATCH] lib/nat: Fix test build failure (ref #9010) --- lib/nat/structs_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nat/structs_test.go b/lib/nat/structs_test.go index bedb3dda9..08f4e02ca 100644 --- a/lib/nat/structs_test.go +++ b/lib/nat/structs_test.go @@ -70,7 +70,7 @@ func TestMappingClearAddresses(t *testing.T) { natSvc := NewService(protocol.EmptyDeviceID, w) // Mock a mapped port; avoids the need to actually map a port ip := net.ParseIP("192.168.0.1") - m := natSvc.NewMapping(TCP, ip, 1024) + m := natSvc.NewMapping(TCP, IPv4Only, ip, 1024) m.extAddresses["test"] = []Address{{ IP: ip, Port: 1024,