mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-02 14:35:25 +00:00
Merge branch 'main' into mandatory-stun
This commit is contained in:
commit
d13338a9fb
2
app.go
2
app.go
@ -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().
|
||||||
|
Loading…
Reference in New Issue
Block a user