add xray-core restart option in cli

This commit is contained in:
Alireza Ahmadi
2026-02-20 00:08:36 +01:00
parent 9d93468332
commit 6781b0f7ae
4 changed files with 50 additions and 28 deletions

View File

@@ -392,3 +392,7 @@ func (s *Server) GetCtx() context.Context {
func (s *Server) GetCron() *cron.Cron {
return s.cron
}
func (s *Server) RestartXray() error {
return s.xrayService.RestartXray(true)
}