Fix go vet issues
This commit is contained in:
parent
caaa30c747
commit
cd6a63fc57
6 changed files with 15 additions and 15 deletions
|
@ -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
|
||||
|
|
Reference in a new issue