all: fix vet warnings

This commit is contained in:
Brad Fitzpatrick
2020-07-16 08:39:38 -07:00
parent d74c9aa95b
commit 10ac066013
6 changed files with 20 additions and 11 deletions

View File

@@ -2828,7 +2828,7 @@ func (de *discoEndpoint) Addrs() []wgcfg.Endpoint {
if err != nil {
panic(err)
}
return []wgcfg.Endpoint{{host, uint16(port)}}
return []wgcfg.Endpoint{{Host: host, Port: uint16(port)}}
}
func (de *discoEndpoint) ClearSrc() {}