Set Route.Network to "network" and Router.Gateway to network.Address
This commit is contained in:
parent
8c3eec9f2a
commit
9448d7c164
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user