From 0a38624ba7701a04faeb6dd1ba9d05454f0b4843 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Tue, 21 Apr 2026 21:18:59 +0200 Subject: Add None option VLESS auth selection --- web/html/modals/inbound_modal.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'web/html/modals') 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) { -- cgit v1.2.3