Change router.Route metric to int64. Set the route metric properly

This commit is contained in:
Milos Gajdos
2019-10-23 12:53:36 +01:00
parent 326156671d
commit 1ff65e140a
8 changed files with 67 additions and 33 deletions

View File

@@ -111,7 +111,7 @@ func (r *routerSelector) getRoutes(service string) ([]router.Route, error) {
Gateway: r.Gateway,
Network: r.Network,
Link: r.Link,
Metric: int(r.Metric),
Metric: r.Metric,
})
}