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:
Diffstat (limited to 'web/html/modals')
-rw-r--r--web/html/modals/inbound_modal.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/web/html/modals/inbound_modal.html b/web/html/modals/inbound_modal.html
index ef93aefb..aab1af6d 100644
--- a/web/html/modals/inbound_modal.html
+++ b/web/html/modals/inbound_modal.html
@@ -307,6 +307,12 @@
this.inbound.stream.tls.settings.echConfigList = "";
},
async getNewVlessEnc() {
+ const selected = inModal.inbound.settings.selectedAuth;
+ if (!selected) {
+ this.clearVlessEnc();
+ return;
+ }
+
inModal.loading(true);
const msg = await HttpUtil.get("/panel/api/server/getNewVlessEnc");
inModal.loading(false);
@@ -316,7 +322,6 @@
}
const auths = msg.obj.auths || [];
- const selected = inModal.inbound.settings.selectedAuth;
const block = auths.find((a) => a.label === selected);
if (!block) {