Fix go vet issues

This commit is contained in:
nemunaire 2021-03-08 14:49:44 +01:00
parent caaa30c747
commit cd6a63fc57
6 changed files with 15 additions and 15 deletions

View file

@ -104,7 +104,7 @@ func createStudent(_ httprouter.Params, body []byte) (interface{}, error) {
}
exist.RegisterAccess(std.IP, std.MAC)
ip := IPSuffix(exist, net.IPNet{net.ParseIP("172.23.0.0"), net.CIDRMask(17, 32)}).String()
ip := IPSuffix(exist, net.IPNet{IP: net.ParseIP("172.23.0.0"), Mask: net.CIDRMask(17, 32)}).String()
exist.IP = &ip
return exist, nil