diff --git a/web/html/inbounds.html b/web/html/inbounds.html
index c587dc2b..ec628586 100644
--- a/web/html/inbounds.html
+++ b/web/html/inbounds.html
@@ -463,6 +463,9 @@
[[ clientCount[dbInbound.id].online.length ]]
+
+
+ [[ SizeFormatter.sizeFormat(dbInbound.deviceLimit) ]]
@@ -776,6 +779,16 @@
{ title: '{{ i18n "pages.inbounds.client" }}', width: 80, scopedSlots: { customRender: 'client' } },
{ title: '{{ i18n "pages.inbounds.traffic" }}', width: 80, align: 'center', scopedSlots: { customRender: 'traffic' } },
{ title: '{{ i18n "pages.inbounds.allTimeTraffic" }}', width: 80, align: 'center', scopedSlots: { customRender: 'allTime' } },
+
+
+ {
+ title: '{{ i18n "pages.inbounds.speedLimit" }}',
+ width: 80,
+ align: 'center',
+ dataIndex: 'speedLimit',
+ customRender: (text) => (text > 0 ? `${text} KB/s` : i18n("pages.inbounds.unlimited")),
+ },
+
{ title: '{{ i18n "pages.inbounds.expireDate" }}', width: 80, align: 'center', scopedSlots: { customRender: 'expiryTime' } },
];
@@ -1136,7 +1149,8 @@
remark: dbInbound.remark,
enable: dbInbound.enable,
expiryTime: dbInbound.expiryTime,
- // 新增这一行
+
+
deviceLimit: dbInbound.deviceLimit,
listen: inbound.listen,
@@ -1161,8 +1175,8 @@
remark: dbInbound.remark,
enable: dbInbound.enable,
expiryTime: dbInbound.expiryTime,
- // 新增这一行
- deviceLimit: dbInbound.deviceLimit,
+
+ deviceLimit: dbInbound.deviceLimit,
listen: inbound.listen,
port: inbound.port,
@@ -1377,8 +1391,17 @@
await this.getDBInbounds();
}
},
+
getInboundClients(dbInbound) {
- return dbInbound.toInbound().clients;
+
+ const inbound = dbInbound.toInbound();
+ const clients = inbound.clients || [];
+
+
+ return clients.map(c => ({
+ ...c,
+ speedLimit: Number(c.speedLimit || 0),
+ }));
},
resetClientTraffic(client, dbInboundId, confirmation = true) {
if (confirmation){