util/deephash: use keyed struct literal, fix vet

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2021-07-05 21:31:30 -07:00
parent bf9f279768
commit e0258ffd92

View File

@ -107,7 +107,7 @@ func getVal() []interface{} {
DstPorts: []tailcfg.NetPortRange{ DstPorts: []tailcfg.NetPortRange{
{ {
IP: "1.2.3.4/32", IP: "1.2.3.4/32",
Ports: tailcfg.PortRange{1, 2}, Ports: tailcfg.PortRange{First: 1, Last: 2},
}, },
}, },
}, },