Merge pull request #500 from bravechamp/patch-1

Fix API access
This commit is contained in:
Juan Font
2022-03-15 14:53:23 +01:00
committed by GitHub

2
app.go
View File

@@ -409,8 +409,6 @@ func (h *Headscale) httpAuthenticationMiddleware(ctx *gin.Context) {
return
}
ctx.AbortWithStatus(http.StatusUnauthorized)
valid, err := h.ValidateAPIKey(strings.TrimPrefix(authHeader, AuthPrefix))
if err != nil {
log.Error().