mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 19:08:58 +00:00
lib/nat: Fix test build failure (ref #9010)
This commit is contained in:
parent
768fd6bff8
commit
a2cbc62521
@ -70,7 +70,7 @@ func TestMappingClearAddresses(t *testing.T) {
|
|||||||
natSvc := NewService(protocol.EmptyDeviceID, w)
|
natSvc := NewService(protocol.EmptyDeviceID, w)
|
||||||
// Mock a mapped port; avoids the need to actually map a port
|
// Mock a mapped port; avoids the need to actually map a port
|
||||||
ip := net.ParseIP("192.168.0.1")
|
ip := net.ParseIP("192.168.0.1")
|
||||||
m := natSvc.NewMapping(TCP, ip, 1024)
|
m := natSvc.NewMapping(TCP, IPv4Only, ip, 1024)
|
||||||
m.extAddresses["test"] = []Address{{
|
m.extAddresses["test"] = []Address{{
|
||||||
IP: ip,
|
IP: ip,
|
||||||
Port: 1024,
|
Port: 1024,
|
||||||
|
Loading…
Reference in New Issue
Block a user