diff options
| author | Hamidreza <70919649+hamid-gh98@users.noreply.github.com> | 2023-07-01 15:26:43 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-01 15:26:43 +0300 |
| commit | 10283193862e7bd36b20e6b2c41411d251961c27 (patch) | |
| tree | 892d133611c08e01db4b372645d8bcf579635739 /web/service/server.go | |
| parent | f726474a5db3fa68eeb78729a58629382f6d2699 (diff) | |
🚀 Some improvements for x-ui.sh and ip job (#665)
Diffstat (limited to 'web/service/server.go')
| -rw-r--r-- | web/service/server.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/web/service/server.go b/web/service/server.go index 936e6469..5216be5a 100644 --- a/web/service/server.go +++ b/web/service/server.go @@ -14,6 +14,7 @@ import ( "runtime" "strings" "time" + "x-ui/config" "x-ui/database" "x-ui/logger" @@ -250,7 +251,6 @@ func (s *ServerService) GetXrayVersions() ([]string, error) { } func (s *ServerService) StopXrayService() (string error) { - err := s.xrayService.StopXray() if err != nil { logger.Error("stop xray failed:", err) @@ -261,7 +261,6 @@ func (s *ServerService) StopXrayService() (string error) { } func (s *ServerService) RestartXrayService() (string error) { - s.xrayService.StopXray() defer func() { err := s.xrayService.RestartXray(true) @@ -377,7 +376,6 @@ func (s *ServerService) UpdateXray(version string) error { } return nil - } func (s *ServerService) GetLogs(count string, logLevel string) ([]string, error) { |
