更新大量功能

This commit is contained in:
sprov
2021-05-28 17:32:51 +08:00
parent 3cd25ce5ea
commit a66dff6959
41 changed files with 1231 additions and 1009 deletions

View File

@@ -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)