From 5317df21f3923bfa771ed6008d5b0f5f8911e498 Mon Sep 17 00:00:00 2001
From: MHSanaei <33454419+MHSanaei@users.noreply.github.com>
Date: Tue, 28 Feb 2023 23:24:29 +0330
Subject: ip limit + export links
---
web/html/xui/form/protocol/trojan.html | 35 +++++++++++++++++++++++++++++++++
web/html/xui/form/protocol/vless.html | 36 ++++++++++++++++++++++++++++++++++
web/html/xui/form/protocol/vmess.html | 33 +++++++++++++++++++++++++++++++
web/html/xui/inbound_modal.html | 24 +++++++++++++++++++++++
web/html/xui/inbounds.html | 13 ++++++++++++
5 files changed, 141 insertions(+)
(limited to 'web/html/xui')
diff --git a/web/html/xui/form/protocol/trojan.html b/web/html/xui/form/protocol/trojan.html
index 6d43bc34..4bf57d7a 100644
--- a/web/html/xui/form/protocol/trojan.html
+++ b/web/html/xui/form/protocol/trojan.html
@@ -21,6 +21,41 @@
+
+
+
+ IP Count Limit
+
+
+ disable inbound if more than entered count (0 for disable limit ip)
+
+
+
+
+
+
+
+
+ IP log
+
+
+ IPs history Log (before enabling inbound after it has been disabled by IP limit, you should clear the log)
+
+
+
+
+
+ clear the log
+
+
+
+
+
+
+
+
+
+
diff --git a/web/html/xui/form/protocol/vless.html b/web/html/xui/form/protocol/vless.html
index fc7ffaa6..6d895f19 100644
--- a/web/html/xui/form/protocol/vless.html
+++ b/web/html/xui/form/protocol/vless.html
@@ -22,6 +22,42 @@
+
+
+
+ IP Count Limit
+
+
+ disable inbound if more than entered count (0 for disable limit ip)
+
+
+
+
+
+
+
+
+ IP log
+
+
+ IPs history Log (before enabling inbound after it has been disabled by IP limit, you should clear the log)
+
+
+
+
+
+ clear the log
+
+
+
+
+
+
+
+
+
+
+
diff --git a/web/html/xui/form/protocol/vmess.html b/web/html/xui/form/protocol/vmess.html
index f7050a5e..bab0cb8b 100644
--- a/web/html/xui/form/protocol/vmess.html
+++ b/web/html/xui/form/protocol/vmess.html
@@ -21,6 +21,39 @@
+
+
+
+ IP Count Limit
+
+
+ disable inbound if more than entered count (0 for disable limit ip)
+
+
+
+
+
+
+
+
+ IP Log
+
+
+ IPs history Log (before enabling inbound after it has been disabled by IP limit, you should clear the log)
+
+
+
+
+
+ clear the log
+
+
+
+
+
+
+
+
diff --git a/web/html/xui/inbound_modal.html b/web/html/xui/inbound_modal.html
index 80ea2286..54a64bf9 100644
--- a/web/html/xui/inbound_modal.html
+++ b/web/html/xui/inbound_modal.html
@@ -88,6 +88,30 @@
removeClient(index, clients) {
clients.splice(index, 1);
},
+ async getDBClientIps(email,event) {
+
+ const msg = await HttpUtil.post('/xui/inbound/clientIps/'+ email);
+ if (!msg.success) {
+ return;
+ }
+ try {
+ ips = JSON.parse(msg.obj)
+ ips = ips.join(",")
+ event.target.value = ips
+ } catch (error) {
+ // text
+ event.target.value = msg.obj
+
+ }
+
+ },
+ async clearDBClientIps(email,event) {
+ const msg = await HttpUtil.post('/xui/inbound/clearClientIps/'+ email);
+ if (!msg.success) {
+ return;
+ }
+ event.target.value = ""
+ },
async resetClientTraffic(client,event) {
const msg = await HttpUtil.post('/xui/inbound/resetClientTraffic/'+ client.email);
if (!msg.success) {
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html
index 14a61669..1f324846 100644
--- a/web/html/xui/inbounds.html
+++ b/web/html/xui/inbounds.html
@@ -45,6 +45,7 @@
Add Inbound
+
Export Links
{ this.$message.success('Export Links succeed'); });
+ },
delInbound(dbInbound) {
this.$confirm({
title: '{{ i18n "pages.inbounds.deleteInbound"}}',
--
cgit v1.2.3