This commit is contained in:
心隨緣動 2025-08-26 15:44:14 +08:00 committed by GitHub
parent d0eae58a29
commit 2c0ee7cbfe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -326,6 +326,8 @@ func (s *InboundService) UpdateInbound(inbound *model.Inbound) (*model.Inbound,
oldInbound.Remark = inbound.Remark
oldInbound.Enable = inbound.Enable
oldInbound.ExpiryTime = inbound.ExpiryTime
// 中文注释:确保在更新数据时,将前端传来的 deviceLimit 值赋给从数据库中读出的旧对象。
oldInbound.DeviceLimit = inbound.DeviceLimit
oldInbound.Listen = inbound.Listen
oldInbound.Port = inbound.Port
oldInbound.Protocol = inbound.Protocol