[feat] restart xray-core from cli #3825

This commit is contained in:
Alireza Ahmadi
2026-02-20 00:03:16 +01:00
parent 37f0880f8f
commit 2b1d3e7347
7 changed files with 62 additions and 26 deletions

View File

@@ -490,3 +490,7 @@ func (s *Server) GetCron() *cron.Cron {
func (s *Server) GetWSHub() any {
return s.wsHub
}
func (s *Server) RestartXray() error {
return s.xrayService.RestartXray(true)
}