From 2a1852188e3cf75ca74e2e7110873dd5763ef46b Mon Sep 17 00:00:00 2001 From: imbytecat Date: Mon, 26 Aug 2024 14:12:23 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9=20app=20version=20?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- integration/zabbixagent/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration/zabbixagent/handler.go b/integration/zabbixagent/handler.go index f71040f..a239acb 100644 --- a/integration/zabbixagent/handler.go +++ b/integration/zabbixagent/handler.go @@ -24,7 +24,7 @@ type Handler struct { } func (h *Handler) GetAppVersion(_ context.Context, _ map[string]string, _ ...string) (any, error) { - return constant.AppVersion, nil + return fmt.Sprintf("%s %s", constant.AppName, constant.AppVersion), nil } func (h *Handler) HTTPClient(ctx context.Context, params map[string]string, _ ...string) (any, error) { @@ -35,7 +35,7 @@ func (h *Handler) HTTPClient(ctx context.Context, params map[string]string, _ .. url := params["url"] if !strings.HasPrefix(url, "http") { - url = fmt.Sprintf("http://127.0.0.1:%d%s", config.Config.App.Port, url) + url = fmt.Sprintf("http://localhost:%d%s", config.Config.App.Port, url) } body := params["body"]