Skip to content

Commit 500b08b

Browse files
committed
Update inbound.go
fix expiry time
1 parent 64c5ecc commit 500b08b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/service/inbound.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func (s *InboundService) AddTraffic(traffics []*xray.Traffic) (err error) {
167167

168168
func (s *InboundService) DisableInvalidInbounds() (int64, error) {
169169
db := database.GetDB()
170-
now := time.Now()
170+
now := time.Now().Unix() * 1000
171171
result := db.Model(model.Inbound{}).
172172
Where("((total > 0 and up + down >= total) or (expiry_time > 0 and expiry_time <= ?)) and enable = ?", now, true).
173173
Update("enable", false)

0 commit comments

Comments
 (0)