stricter hostname validation and replace (#2383)

This commit is contained in:
Kristoffer Dalby 2025-10-22 13:50:39 +02:00 committed by GitHub
parent 2c9e98d3f5
commit 1cdea7ed9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 888 additions and 193 deletions

View file

@ -66,6 +66,11 @@ func MustGenerateRandomStringDNSSafe(size int) string {
return hash
}
func InvalidString() string {
hash, _ := GenerateRandomStringDNSSafe(8)
return "invalid-" + hash
}
func TailNodesToString(nodes []*tailcfg.Node) string {
temp := make([]string, len(nodes))