Update inbound.go

Remove duplicate code
This commit is contained in:
Ali Golzar 2025-08-27 15:51:08 +03:30 committed by GitHub
parent 3cc3062f8b
commit 4f48af5586
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1015,12 +1015,6 @@ func (s *InboundService) adjustTraffics(tx *gorm.DB, dbClientTraffics []*xray.Cl
break break
} }
} }
// Remove "flow": "xtls-rprx-direct"
if _, ok := c["flow"]; ok {
if c["flow"] == "xtls-rprx-direct" {
c["flow"] = ""
}
}
// Backfill created_at and updated_at // Backfill created_at and updated_at
if _, ok := c["created_at"]; !ok { if _, ok := c["created_at"]; !ok {
c["created_at"] = time.Now().Unix() * 1000 c["created_at"] = time.Now().Unix() * 1000