Remove quic transport, move route into router

This commit is contained in:
Asim Aslam 2020-08-22 16:15:44 +01:00 committed by Vasiliy Tolstov
parent ad5959318c
commit 1d61a1788f

View File

@ -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)