mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-12 03:27:35 +00:00
new IP allocator and add postgres to integration tests. (#1756)
This commit is contained in:
@@ -388,8 +388,21 @@ func (h *Headscale) handleAuthKey(
|
||||
ForcedTags: pak.Proto().GetAclTags(),
|
||||
}
|
||||
|
||||
addrs, err := h.ipAlloc.Next()
|
||||
if err != nil {
|
||||
log.Error().
|
||||
Caller().
|
||||
Str("func", "RegistrationHandler").
|
||||
Str("hostinfo.name", registerRequest.Hostinfo.Hostname).
|
||||
Err(err).
|
||||
Msg("failed to allocate IP ")
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
node, err = h.db.RegisterNode(
|
||||
nodeToRegister,
|
||||
addrs,
|
||||
)
|
||||
if err != nil {
|
||||
log.Error().
|
||||
|
Reference in New Issue
Block a user