mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-29 18:33:05 +00:00
fix: apply fmt and fix missing name changes
This commit is contained in:
parent
2b68c90778
commit
41efe98953
3 changed files with 3 additions and 2 deletions
2
acls.go
2
acls.go
|
@ -444,7 +444,7 @@ func expandGroup(
|
||||||
errInvalidGroup,
|
errInvalidGroup,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
grp, err := NormalizeName(group, stripEmailDomain)
|
grp, err := NormalizeToFQDNRules(group, stripEmailDomain)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return []string{}, fmt.Errorf(
|
return []string{}, fmt.Errorf(
|
||||||
"failed to normalize group %q, err: %w",
|
"failed to normalize group %q, err: %w",
|
||||||
|
|
1
api.go
1
api.go
|
@ -144,6 +144,7 @@ func (h *Headscale) RegistrationHandler(ctx *gin.Context) {
|
||||||
Str("func", "RegistrationHandler").
|
Str("func", "RegistrationHandler").
|
||||||
Str("hostinfo.name", req.Hostinfo.Hostname).
|
Str("hostinfo.name", req.Hostinfo.Hostname).
|
||||||
Err(err)
|
Err(err)
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
poll.go
2
poll.go
|
@ -83,7 +83,7 @@ func (h *Headscale) PollNetMapHandler(ctx *gin.Context) {
|
||||||
Str("machine", machine.Name).
|
Str("machine", machine.Name).
|
||||||
Msg("Found machine in database")
|
Msg("Found machine in database")
|
||||||
|
|
||||||
hname, err := NormalizeName(
|
hname, err := NormalizeToFQDNRules(
|
||||||
req.Hostinfo.Hostname,
|
req.Hostinfo.Hostname,
|
||||||
h.cfg.OIDC.StripEmaildomain,
|
h.cfg.OIDC.StripEmaildomain,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue