From bcc890e47c38ab6aef05a2c2fa8c458a5ae92d12 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Fri, 17 Jul 2020 18:45:22 +0300 Subject: [PATCH] router: pass node metadata to route instead of service metadata (#1855) Signed-off-by: Vasiliy Tolstov --- router/default.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/default.go b/router/default.go index 1769c9a7..7ef99831 100644 --- a/router/default.go +++ b/router/default.go @@ -135,7 +135,7 @@ func (r *router) manageRoutes(service *registry.Service, action, network string) Router: r.options.Id, Link: DefaultLink, Metric: DefaultLocalMetric, - Metadata: service.Metadata, + Metadata: node.Metadata, } if err := r.manageRoute(route, action); err != nil {