mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-14 05:23:09 +00:00
更新大量功能
This commit is contained in:
@@ -264,7 +264,12 @@ func (s *ServerService) UpdateXray(version string) error {
|
||||
}
|
||||
|
||||
s.xrayService.StopXray()
|
||||
defer s.xrayService.StartXray()
|
||||
defer func() {
|
||||
err := s.xrayService.StartXray()
|
||||
if err != nil {
|
||||
logger.Error("start xray failed:", err)
|
||||
}
|
||||
}()
|
||||
|
||||
copyZipFile := func(zipName string, fileName string) error {
|
||||
zipFile, err := reader.Open(zipName)
|
||||
|
||||
Reference in New Issue
Block a user