From 54a8499c7bb74b805afb471220226aec2e051fe0 Mon Sep 17 00:00:00 2001 From: Nate Brown Date: Tue, 9 May 2023 11:01:30 -0500 Subject: [PATCH] Fix go vet (#868) --- firewall_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firewall_test.go b/firewall_test.go index fe3d2e0..7ffa747 100644 --- a/firewall_test.go +++ b/firewall_test.go @@ -755,7 +755,7 @@ func TestAddFirewallRulesFromConfig(t *testing.T) { assert.Equal(t, addRuleCall{incoming: true, proto: firewall.ProtoAny, startPort: 1, endPort: 1, groups: nil, host: "a", ip: nil, localIp: nil}, mf.lastCall) // Test adding rule with cidr - cidr := &net.IPNet{net.ParseIP("10.0.0.0").To4(), net.IPv4Mask(255, 0, 0, 0)} + cidr := &net.IPNet{IP: net.ParseIP("10.0.0.0").To4(), Mask: net.IPv4Mask(255, 0, 0, 0)} conf = config.NewC(l) mf = &mockFirewall{} conf.Settings["firewall"] = map[interface{}]interface{}{"inbound": []interface{}{map[interface{}]interface{}{"port": "1", "proto": "any", "cidr": cidr.String()}}}