Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/service/server.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/service/server.go b/web/service/server.go
index 69534ee2..d1197722 100644
--- a/web/service/server.go
+++ b/web/service/server.go
@@ -846,6 +846,10 @@ func (s *ServerService) GetXrayLogs(
entries = append(entries, entry)
}
+ if err := scanner.Err(); err != nil {
+ return nil
+ }
+
if len(entries) > countInt {
entries = entries[len(entries)-countInt:]
}