From 1a53c7b4d384905b815d7cd7f01f98dd14cfe83d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BE=84=E6=BD=AD?= Date: Fri, 11 Oct 2024 11:39:46 +0800 Subject: [PATCH] fix mcpbridge endpoint port (#1382) --- registry/direct/watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/direct/watcher.go b/registry/direct/watcher.go index f523f1f06a..8ad5f858c2 100644 --- a/registry/direct/watcher.go +++ b/registry/direct/watcher.go @@ -152,7 +152,7 @@ func (w *watcher) generateServiceEntry(host string) *v1alpha3.ServiceEntry { } endpoint = &v1alpha3.WorkloadEntry{ 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) { if !domainRegex.MatchString(ep) {