From 9448d7c164411fa325a55f1344bb9d141261da65 Mon Sep 17 00:00:00 2001 From: Milos Gajdos Date: Fri, 23 Aug 2019 16:01:57 +0100 Subject: [PATCH] Set Route.Network to "network" and Router.Gateway to network.Address --- network/default.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/network/default.go b/network/default.go index bab14f13..e4512172 100644 --- a/network/default.go +++ b/network/default.go @@ -226,8 +226,8 @@ func (n *network) advertise(client transport.Client, advertChan <-chan *router.A route := &pb.Route{ Service: event.Route.Service, Address: event.Route.Address, - Gateway: event.Route.Gateway, - Network: event.Route.Network, + Gateway: n.options.Address, + Network: "network", Link: event.Route.Link, Metric: int64(event.Route.Metric), } @@ -257,6 +257,7 @@ func (n *network) advertise(client transport.Client, advertChan <-chan *router.A }, Body: body, } + if err := client.Send(&m); err != nil { log.Debugf("Network failed to send advert %s: %v", pbAdvert.Id, err) continue