mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-22 16:24:53 +09:00
#2177 Added conversion of 'Hostname' to 'givenName' in a node with FQDN rules applied (#2198)
Build / build (push) Has been cancelled
Build documentation / build (push) Has been cancelled
Tests / test (push) Has been cancelled
Build documentation / deploy (push) Has been cancelled
Build / build (push) Has been cancelled
Build documentation / build (push) Has been cancelled
Tests / test (push) Has been cancelled
Build documentation / deploy (push) Has been cancelled
This commit is contained in:
@@ -607,6 +607,7 @@ func enableRoutes(tx *gorm.DB,
|
||||
}
|
||||
|
||||
func generateGivenName(suppliedName string, randomSuffix bool) (string, error) {
|
||||
suppliedName = util.ConvertWithFQDNRules(suppliedName)
|
||||
if len(suppliedName) > util.LabelHostnameLength {
|
||||
return "", types.ErrHostnameTooLong
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user