overlay: fix tun.RouteFor getting *net.IP (#595)
tun.RouteFor expects the routeTree to have an iputil.VpnIp inside of it instead of a *net.IP.
This commit is contained in:
@ -97,7 +97,7 @@ func (t *winTun) Activate() error {
|
||||
// Add our unsafe route
|
||||
routes = append(routes, &winipcfg.RouteData{
|
||||
Destination: *r.Cidr,
|
||||
NextHop: *r.Via,
|
||||
NextHop: r.Via.ToIP(),
|
||||
Metric: uint32(r.Metric),
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user