mirror of
https://github.com/alibaba/higress.git
synced 2026-05-27 06:07:27 +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)
|
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 {
|
func (w *watcher) generateServiceEntry(host string) *v1alpha3.ServiceEntry {
|
||||||
endpoints := make([]*v1alpha3.WorkloadEntry, 0)
|
endpoints := make([]*v1alpha3.WorkloadEntry, 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user