Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-06-03 18:29:32 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-06-03 18:29:32 +0300
commitfdc1124ea495aafbb5096b0333e8ceff6aaa53f8 (patch)
tree990344071070d6d8b57d9989e862f84cbbc25d94 /web/html/xui/client_modal.html
parent33a598366be966ded4e0b41bbe19fd566552eec3 (diff)
some changes
ip limit method back to v1.6.0 method remove event on getDBClientIps better show ip on log (",\n")
Diffstat (limited to 'web/html/xui/client_modal.html')
-rw-r--r--web/html/xui/client_modal.html29
1 files changed, 15 insertions, 14 deletions
diff --git a/web/html/xui/client_modal.html b/web/html/xui/client_modal.html
index ba9fce31..e8236778 100644
--- a/web/html/xui/client_modal.html
+++ b/web/html/xui/client_modal.html
@@ -120,26 +120,27 @@
},
},
methods: {
- async getDBClientIps(email, event) {
- const msg = await HttpUtil.post('/panel/inbound/clientIps/' + email);
- if (!msg.success) {
- return;
- }
+ async getDBClientIps(email) {
try {
- ips = JSON.parse(msg.obj)
- ips = ips.join(",")
- event.target.value = ips
+ const msg = await HttpUtil.post(`/panel/inbound/clientIps/${email}`);
+ if (!msg.success) {
+ return;
+ }
+ const ips = JSON.parse(msg.obj).join(",\n");
+ document.getElementById("clientIPs").value = ips;
} catch (error) {
- // text
- event.target.value = msg.obj
+ document.getElementById("clientIPs").value = msg.obj;
}
},
async clearDBClientIps(email) {
- const msg = await HttpUtil.post('/panel/inbound/clearClientIps/' + email);
- if (!msg.success) {
- return;
+ try {
+ const msg = await HttpUtil.post(`/panel/inbound/clearClientIps/${email}`);
+ if (!msg.success) {
+ return;
+ }
+ document.getElementById("clientIPs").value = "";
+ } catch (error) {
}
- document.getElementById("clientIPs").value = ""
},
resetClientTraffic(email, dbInboundId, iconElement) {
this.$confirm({