mirror of
https://github.com/juanfont/headscale.git
synced 2026-03-28 12:12:06 +01:00
TS2021: Expose Register handler in Noise
This commit is contained in:
9
api.go
9
api.go
@@ -563,8 +563,13 @@ func (h *Headscale) handleAuthKey(
|
||||
machineKey key.MachinePublic,
|
||||
registerRequest tailcfg.RegisterRequest,
|
||||
) {
|
||||
machineKeyStr := MachinePublicKeyStripPrefix(machineKey)
|
||||
|
||||
var machineKeyStr string
|
||||
if machineKey.IsZero() {
|
||||
// We are handling here a Noise auth key
|
||||
machineKeyStr = ""
|
||||
} else {
|
||||
machineKeyStr = MachinePublicKeyStripPrefix(machineKey)
|
||||
}
|
||||
log.Debug().
|
||||
Str("func", "handleAuthKey").
|
||||
Str("machine", registerRequest.Hostinfo.Hostname).
|
||||
|
||||
Reference in New Issue
Block a user