Address a bunch of golint warnings.

This commit is contained in:
Ward Vandewege 2021-04-24 11:26:50 -04:00
parent d30b682a6e
commit f7b6c68d22
7 changed files with 13 additions and 3 deletions

2
api.go
View file

@ -104,7 +104,7 @@ func (h *Headscale) RegistrationHandler(c *gin.Context) {
return
}
log.Println("Hey! Not registered. Not asking for key rotation. Send a passive-agressive authurl to register")
log.Println("Hey! Not registered. Not asking for key rotation. Send a passive-aggressive authurl to register")
resp.AuthURL = fmt.Sprintf("%s/register?key=%s",
h.cfg.ServerURL, mKey.HexString())
respBody, err := encode(resp, &mKey, h.privateKey)