From b50ff030e125e299aa0724fef350136fe6f01e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=99=AB=E4=BA=8C?= Date: Mon, 27 Mar 2023 03:03:37 +0000 Subject: [PATCH] format vip --- apiserver/eurekaserver/access.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apiserver/eurekaserver/access.go b/apiserver/eurekaserver/access.go index 7fc8d6034..210a2080b 100644 --- a/apiserver/eurekaserver/access.go +++ b/apiserver/eurekaserver/access.go @@ -637,7 +637,7 @@ func (h *EurekaServer) QueryByVipAddress(req *restful.Request, rsp *restful.Resp } appsRespCache := h.worker.GetVipApps(VipCacheKey{ entityType: entityTypeVip, - targetVipAddress: vipAddress, + targetVipAddress: formatReadName(vipAddress), }) acceptValue := getParamFromEurekaRequestHeader(req, restful.HEADER_Accept) if err := writeResponse(parseAcceptValue(acceptValue), appsRespCache, req, rsp); nil != err { @@ -658,7 +658,7 @@ func (h *EurekaServer) QueryBySVipAddress(req *restful.Request, rsp *restful.Res } appsRespCache := h.worker.GetVipApps(VipCacheKey{ entityType: entityTypeSVip, - targetVipAddress: vipAddress, + targetVipAddress: formatReadName(vipAddress), }) acceptValue := getParamFromEurekaRequestHeader(req, restful.HEADER_Accept) if err := writeResponse(parseAcceptValue(acceptValue), appsRespCache, req, rsp); nil != err {