Skip to content

Commit

Permalink
Update route.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ttgml committed May 16, 2023
1 parent 764a04e commit 1ec3a0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/internal/handler/route/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 1ec3a0e

Please sign in to comment.