[feat] restart xray-core from cli #3825

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

No files matched your search

+4
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)
}