From 4e5fbbf7eb1750b3d9d33c822380b4a27f1889d7 Mon Sep 17 00:00:00 2001 From: Milos Gajdos Date: Wed, 19 Jun 2019 18:11:16 +0100 Subject: [PATCH] Replaced the debug network string by the correct router local address. --- router/default_router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router/default_router.go b/router/default_router.go index 0923dffe..3303e047 100644 --- a/router/default_router.go +++ b/router/default_router.go @@ -84,7 +84,7 @@ func (r *router) Network() string { // Start starts the router func (r *router) Start() error { // add local service routes into the routing table - if err := r.addServiceRoutes(r.opts.LocalRegistry, "local", DefaultLocalMetric); err != nil { + if err := r.addServiceRoutes(r.opts.LocalRegistry, r.opts.Address, DefaultLocalMetric); err != nil { return fmt.Errorf("failed adding routes for local services: %v", err) } @@ -115,7 +115,7 @@ func (r *router) Start() error { go func() { defer r.wg.Done() // watch local registry and register routes in routine table - errChan <- r.manageServiceRoutes(localRegWatcher, "local", DefaultLocalMetric) + errChan <- r.manageServiceRoutes(localRegWatcher, r.opts.Address, DefaultLocalMetric) }() r.wg.Add(1)