mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-03-21 01:55:49 +00:00
[feat] restart xray-core from cli #3825
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user