From 757c2a76f8019f797963168cb459991fabaa3fe1 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Fri, 24 Feb 2023 00:05:53 +0100 Subject: [PATCH] Minimize call API for Client --- web/html/xui/inbounds.html | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index a6d4339a..7c993aea 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -381,38 +381,14 @@ async addClient(inbound, dbInbound) { const data = { id: dbInbound.id, - up: dbInbound.up, - down: dbInbound.down, - total: dbInbound.total, - remark: dbInbound.remark, - enable: dbInbound.enable, - expiryTime: dbInbound.expiryTime, - - listen: inbound.listen, - port: inbound.port, - protocol: inbound.protocol, settings: inbound.settings.toString(), - streamSettings: inbound.stream.toString(), - sniffing: inbound.canSniffing() ? inbound.sniffing.toString() : '{}', }; await this.submit('/xui/inbound/addClient', data, clientModal); }, async updateClient(inbound, dbInbound, index) { const data = { id: dbInbound.id, - up: dbInbound.up, - down: dbInbound.down, - total: dbInbound.total, - remark: dbInbound.remark, - enable: dbInbound.enable, - expiryTime: dbInbound.expiryTime, - - listen: inbound.listen, - port: inbound.port, - protocol: inbound.protocol, settings: inbound.settings.toString(), - streamSettings: inbound.stream.toString(), - sniffing: inbound.canSniffing() ? inbound.sniffing.toString() : '{}', }; await this.submit(`/xui/inbound/updateClient/${index}`, data, clientModal); },