Remove quic transport, move route into router
This commit is contained in:
parent
ad5959318c
commit
1d61a1788f
@ -136,7 +136,7 @@ func (r *rtr) createRoutes(service *registry.Service, network string) []router.R
|
|||||||
Network: network,
|
Network: network,
|
||||||
Router: r.options.Id,
|
Router: r.options.Id,
|
||||||
Link: router.DefaultLink,
|
Link: router.DefaultLink,
|
||||||
Metric: router.DefaultLocalMetric,
|
Metric: router.DefaultMetric,
|
||||||
Metadata: node.Metadata,
|
Metadata: node.Metadata,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -376,7 +376,7 @@ func (r *rtr) start() error {
|
|||||||
Network: "*",
|
Network: "*",
|
||||||
Router: r.options.Id,
|
Router: r.options.Id,
|
||||||
Link: router.DefaultLink,
|
Link: router.DefaultLink,
|
||||||
Metric: router.DefaultLocalMetric,
|
Metric: router.DefaultMetric,
|
||||||
}
|
}
|
||||||
if err := r.table.Create(route); err != nil {
|
if err := r.table.Create(route); err != nil {
|
||||||
return fmt.Errorf("failed adding default gateway route: %s", err)
|
return fmt.Errorf("failed adding default gateway route: %s", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user