mirror of
https://github.com/juanfont/headscale.git
synced 2025-10-18 02:53:36 +00:00
Fix labels cardinality error when registering unknown pre-auth key
This commit is contained in:
2
api.go
2
api.go
@@ -573,7 +573,7 @@ func (h *Headscale) handleAuthKey(
|
||||
machineRegistrations.WithLabelValues("new", RegisterMethodAuthKey, "error", pak.Namespace.Name).
|
||||
Inc()
|
||||
} else {
|
||||
machineRegistrations.WithLabelValues("new", RegisterMethodAuthKey, "error").Inc()
|
||||
machineRegistrations.WithLabelValues("new", RegisterMethodAuthKey, "error", "unknown").Inc()
|
||||
}
|
||||
|
||||
return
|
||||
|
Reference in New Issue
Block a user