Fix go vet issues

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

View file

@ -29,7 +29,7 @@ func init() {
}
func check_GLUE_respond(student *adlin.Student, domain string, ip string) (err error) {
if !strings.HasPrefix(ip, adlin.StudentIP(student.Id).String()) {
return fmt.Errorf("%q is not your IP range")
return fmt.Errorf("%q is not your IP range", ip)
}
client := dns.Client{Net: "tcp", Timeout: time.Second * 5}