api/router/registry: use resolved domain (#1774)

This commit is contained in:
ben-toogood 2020-07-01 12:23:55 +01:00 committed by Vasiliy Tolstov
parent 7c4047a900
commit 9a13b816be

View File

@ -434,7 +434,7 @@ func (r *registryRouter) Route(req *http.Request) (*api.Service, error) {
name := rp.Name name := rp.Name
// get service // get service
services, err := r.rc.GetService(name) services, err := r.rc.GetService(name, registry.GetDomain(rp.Domain))
if err != nil { if err != nil {
return nil, err return nil, err
} }