mirror of
https://github.com/juanfont/headscale.git
synced 2025-10-25 07:09:27 +00:00
feat(namespace): add normalization function for namespace
This commit is contained in:
@@ -724,11 +724,7 @@ func (machine Machine) toNode(
|
||||
hostname = fmt.Sprintf(
|
||||
"%s.%s.%s",
|
||||
machine.Name,
|
||||
strings.ReplaceAll(
|
||||
machine.Namespace.Name,
|
||||
"@",
|
||||
".",
|
||||
), // Replace @ with . for valid domain for machine
|
||||
machine.Namespace.Name,
|
||||
baseDomain,
|
||||
)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user