Merge branch 'main' into mandatory-stun

This commit is contained in:
Kristoffer Dalby 2022-03-16 07:18:18 +00:00 committed by GitHub
commit d13338a9fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
app.go
View File

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