This commit is contained in:
心隨緣動 2025-09-10 16:42:29 +08:00 committed by GitHub
parent 74411707e7
commit ea2d69fe38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1014,7 +1014,9 @@ func (s *InboundService) addClientTraffic(tx *gorm.DB, traffics []*xray.ClientTr
}
// Set onlineUsers
p.SetOnlineClients(onlineClients)
if p != nil {
p.SetOnlineClients(onlineClients)
}
err = tx.Save(dbClientTraffics).Error
if err != nil {