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

This commit is contained in:
ben-toogood 2020-07-01 12:23:55 +01:00 committed by GitHub
parent 64e9185386
commit 6d9d94b105
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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