Fix some issues in testing with new hostname handling
This commit is contained in:
parent
5fa987519d
commit
4f3f0542d4
4 changed files with 12 additions and 71 deletions
2
utils.go
2
utils.go
|
@ -320,7 +320,7 @@ func GenerateRandomStringURLSafe(n int) (string, error) {
|
|||
func GenerateRandomStringDNSSafe(n int) (string, error) {
|
||||
str, err := GenerateRandomStringURLSafe(n)
|
||||
|
||||
str = strings.ReplaceAll(str, "_", "-")
|
||||
str = strings.ToLower(strings.ReplaceAll(strings.ReplaceAll(str, "_", ""), "-", ""))
|
||||
|
||||
return str[:n], err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue