From fd485879e39059c1055210e2a93b4407c2dfb022 Mon Sep 17 00:00:00 2001 From: banghao <46078945+zxwsclcmxbh@users.noreply.github.com> Date: Mon, 30 Oct 2023 14:31:48 +0800 Subject: [PATCH] Update manager.go Signed-off-by: banghao <46078945+zxwsclcmxbh@users.noreply.github.com> --- event/manager.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/event/manager.go b/event/manager.go index 4ed1564974..be5e97b121 100644 --- a/event/manager.go +++ b/event/manager.go @@ -156,9 +156,9 @@ func (m *manager) UpdateEndpoints(endpoints ...*config.Endpoint) { manager: m, ctx: m.ctx, } - if len(m.config.EventLogServers) != 0 { - h.server = m.config.EventLogServers[0] - } + if len(m.config.EventLogServers) != 0 && m.config.EventLogServers[0] != "127.0.0.1:6366" { + h.server = m.config.EventLogServers[0] + } m.handles[end.URL] = h logrus.Infof("Add event server endpoint,%s", end.URL) go h.HandleLog()