mirror of
https://github.com/alibaba/higress.git
synced 2026-05-26 13:47:27 +08:00
fix mcpbridge endpoint port (#1382)
This commit is contained in:
@@ -152,7 +152,7 @@ func (w *watcher) generateServiceEntry(host string) *v1alpha3.ServiceEntry {
|
|||||||
}
|
}
|
||||||
endpoint = &v1alpha3.WorkloadEntry{
|
endpoint = &v1alpha3.WorkloadEntry{
|
||||||
Address: pair[0],
|
Address: pair[0],
|
||||||
Ports: map[string]uint32{"http": uint32(port)},
|
Ports: map[string]uint32{w.Protocol: uint32(port)},
|
||||||
}
|
}
|
||||||
} else if w.Type == string(registry.DNS) {
|
} else if w.Type == string(registry.DNS) {
|
||||||
if !domainRegex.MatchString(ep) {
|
if !domainRegex.MatchString(ep) {
|
||||||
|
|||||||
Reference in New Issue
Block a user