mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-27 00:36:49 +09:00
Migrate IP fields in database to dedicated columns (#1869)
This commit is contained in:
1 parent
85cef84e17
commit
2ce23df45a
39 files changed
+1885
-1055
No files matched your search
+2
-3
@@ -383,7 +383,7 @@ func (h *Headscale) handleAuthKey(
|
||||
ForcedTags: pak.Proto().GetAclTags(),
|
||||
}
|
||||
|
||||
addrs, err := h.ipAlloc.Next()
|
||||
ipv4, ipv6, err := h.ipAlloc.Next()
|
||||
if err != nil {
|
||||
log.Error().
|
||||
Caller().
|
||||
@@ -397,7 +397,7 @@ func (h *Headscale) handleAuthKey(
|
||||
|
||||
node, err = h.db.RegisterNode(
|
||||
nodeToRegister,
|
||||
addrs,
|
||||
ipv4, ipv6,
|
||||
)
|
||||
if err != nil {
|
||||
log.Error().
|
||||
@@ -461,7 +461,6 @@ func (h *Headscale) handleAuthKey(
|
||||
|
||||
log.Info().
|
||||
Str("node", registerRequest.Hostinfo.Hostname).
|
||||
Str("ips", strings.Join(node.IPAddresses.StringSlice(), ", ")).
|
||||
Msg("Successfully authenticated via AuthKey")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user