소스 검색

lib/nat: Fix test build failure (ref #9010)

Jakob Borg 2 년 전
부모
커밋
a2cbc62521
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/nat/structs_test.go

+ 1 - 1
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,