mirror of
https://github.com/juanfont/headscale.git
synced 2026-04-10 19:17:25 +02:00
Remove EnabledRoutes from Machine and refactor to adapt to it
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user