api/router/registry: use resolved domain (#1774)
This commit is contained in:
parent
64e9185386
commit
6d9d94b105
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user