From e0258ffd92709c130643fe63db66bb3a8d92be94 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 5 Jul 2021 21:31:30 -0700 Subject: [PATCH] util/deephash: use keyed struct literal, fix vet Signed-off-by: Brad Fitzpatrick --- util/deephash/deephash_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/deephash/deephash_test.go b/util/deephash/deephash_test.go index f8c566959..f75300b1c 100644 --- a/util/deephash/deephash_test.go +++ b/util/deephash/deephash_test.go @@ -107,7 +107,7 @@ func getVal() []interface{} { DstPorts: []tailcfg.NetPortRange{ { IP: "1.2.3.4/32", - Ports: tailcfg.PortRange{1, 2}, + Ports: tailcfg.PortRange{First: 1, Last: 2}, }, }, },