mirror of
https://github.com/alibaba/higress.git
synced 2026-03-07 10:00:48 +08:00
opt:relax dns service domain validation (#2661)
This commit is contained in:
@@ -129,7 +129,7 @@ func (w *watcher) Stop() {
|
||||
w.Ready(false)
|
||||
}
|
||||
|
||||
var domainRegex = regexp.MustCompile(`^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$`)
|
||||
var domainRegex = regexp.MustCompile(`^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$`)
|
||||
|
||||
func (w *watcher) generateServiceEntry(host string) *v1alpha3.ServiceEntry {
|
||||
endpoints := make([]*v1alpha3.WorkloadEntry, 0)
|
||||
|
||||
Reference in New Issue
Block a user