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"]