Update check_client_ip_job.go

This commit is contained in:
itboyhan1 2025-05-28 21:31:29 +08:00 committed by GitHub
parent 7910305b17
commit 0de2b9edbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,6 +13,7 @@ import (
"slices" "slices"
"x-ui/database" "x-ui/database"
"x-ui/web/service"
"x-ui/database/model" "x-ui/database/model"
"x-ui/logger" "x-ui/logger"
"x-ui/xray" "x-ui/xray"
@ -146,6 +147,7 @@ func (j *CheckClientIpJob) processLogFile() bool {
shouldCleanLog := false shouldCleanLog := false
db := database.GetDB() db := database.GetDB()
var clientInboundID uint
for email, uniqueIps := range inboundClientIps { for email, uniqueIps := range inboundClientIps {
var clientData model.Client var clientData model.Client