From 1ec3a0e216f029bb83b4570fdc2be2615a5d4f65 Mon Sep 17 00:00:00 2001 From: Orangey Date: Tue, 16 May 2023 16:11:31 +0800 Subject: [PATCH] Update route.go fix https://github.com/apache/apisix-dashboard/issues/2806#issue-1709628064 --- api/internal/handler/route/route.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/internal/handler/route/route.go b/api/internal/handler/route/route.go index d100c85b4..15d45c38a 100644 --- a/api/internal/handler/route/route.go +++ b/api/internal/handler/route/route.go @@ -240,6 +240,9 @@ func (h *Handler) List(c droplet.Context) (interface{}, error) { } if input.Host != "" && !strings.Contains(obj.(*entity.Route).Host, input.Host) { + if strings.Contains(strings.Join(obj.(*entity.Route).Hosts, ""), input.Host) { + return true + } return false }