mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-26 16:26:50 +09:00
Create constants for other reg methods
This commit is contained in:
1 parent
58d1255357
commit
106b1e7e8d
3 files changed
+4
-4
No files matched your search
@@ -21,6 +21,8 @@ import (
|
||||
const (
|
||||
reservedResponseHeaderSize = 4
|
||||
RegisterMethodAuthKey = "authKey"
|
||||
RegisterMethodOIDC = "oidc"
|
||||
RegisterMethodCLI = "cli"
|
||||
)
|
||||
|
||||
// KeyHandler provides the Headscale pub key
|
||||
@@ -422,8 +424,6 @@ func (h *Headscale) handleMachineRefreshKey(
|
||||
return
|
||||
}
|
||||
ctx.Data(http.StatusOK, "application/json; charset=utf-8", respBody)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
func (h *Headscale) handleMachineRegistrationNew(
|
||||
|
||||
Reference in new issue
Block a user