mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-24 21:15:47 +02:00
Revert domain regex
This commit is contained in:
@@ -350,8 +350,7 @@ func validateDomains(domains []string) (domain.List, error) {
|
|||||||
return nil, fmt.Errorf("domains list exceeds maximum allowed domains: %d", maxDomains)
|
return nil, fmt.Errorf("domains list exceeds maximum allowed domains: %d", maxDomains)
|
||||||
}
|
}
|
||||||
|
|
||||||
domainRegex := regexp.MustCompile(``)
|
domainRegex := regexp.MustCompile(`^(?:(?:xn--)?[a-zA-Z0-9_](?:[a-zA-Z0-9-_]{0,61}[a-zA-Z0-9])?\.)*(?:xn--)?[a-zA-Z0-9](?:[a-zA-Z0-9-_]{0,61}[a-zA-Z0-9])?$`)
|
||||||
//domainRegex := regexp.MustCompile(`^(?:(?:xn--)?[a-zA-Z0-9_](?:[a-zA-Z0-9-_]{0,61}[a-zA-Z0-9])?\.)*(?:xn--)?[a-zA-Z0-9](?:[a-zA-Z0-9-_]{0,61}[a-zA-Z0-9])?$`)
|
|
||||||
|
|
||||||
var domainList domain.List
|
var domainList domain.List
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user