aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2023-12-11 10:13:14 +0100
committerJakob Borg <jakob@kastelo.net>2023-12-11 10:13:14 +0100
commita2cbc62521c0e5676a25d29dd2d95a1fdb06c97f (patch)
tree23346bb6977ca10c112c0dd8fde81bd4fc9c45b7 /lib
parent768fd6bff83447bc5a082b16af021507a7c0255f (diff)
downloadsyncthing-a2cbc62521c0e5676a25d29dd2d95a1fdb06c97f.tar.gz
syncthing-a2cbc62521c0e5676a25d29dd2d95a1fdb06c97f.zip
lib/nat: Fix test build failure (ref #9010)
Diffstat (limited to 'lib')
-rw-r--r--lib/nat/structs_test.go2
1 files changed, 1 insertions, 1 deletions
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,