Remove EnabledRoutes from Machine and refactor to adapt to it

This commit is contained in:
Juan Font
2022-11-24 16:00:40 +00:00
parent ee9e64e57b
commit 1dcc98fcbb
3 changed files with 141 additions and 64 deletions

View File

@@ -374,7 +374,7 @@ func (api headscaleV1APIServer) GetMachineRoute(
}
return &v1.GetMachineRouteResponse{
Routes: machine.RoutesToProto(),
Routes: api.h.RoutesToProto(machine),
}, nil
}
@@ -393,7 +393,7 @@ func (api headscaleV1APIServer) EnableMachineRoutes(
}
return &v1.EnableMachineRoutesResponse{
Routes: machine.RoutesToProto(),
Routes: api.h.RoutesToProto(machine),
}, nil
}