mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-25 01:30:47 +09:00
Start work on making gocritic pass
This commit is contained in:
@@ -56,7 +56,7 @@ func (h *Hosts) UnmarshalJSON(data []byte) error {
|
||||
}
|
||||
for k, v := range hs {
|
||||
if !strings.Contains(v, "/") {
|
||||
v = v + "/32"
|
||||
v += "/32"
|
||||
}
|
||||
prefix, err := netaddr.ParseIPPrefix(v)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user