mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-07 21:02:51 -05:00
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