diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-04-21 22:18:59 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-04-21 22:18:59 +0300 |
| commit | 0a38624ba7701a04faeb6dd1ba9d05454f0b4843 (patch) | |
| tree | 5b3f5ee1f14fceb82e45ac4353a22f221be9d7e3 /web/html | |
| parent | b86473df027f691dd31ff35f57051ea667b11c03 (diff) | |
Add None option VLESS auth selection
Diffstat (limited to 'web/html')
| -rw-r--r-- | web/html/form/protocol/vless.html | 1 | ||||
| -rw-r--r-- | web/html/modals/inbound_modal.html | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/web/html/form/protocol/vless.html b/web/html/form/protocol/vless.html index 443737d0..1ff83839 100644 --- a/web/html/form/protocol/vless.html +++ b/web/html/form/protocol/vless.html @@ -25,6 +25,7 @@ <a-form-item label="Authentication"> <a-select v-model="inbound.settings.selectedAuth" @change="getNewVlessEnc" :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select-option :value="undefined">None</a-select-option> <a-select-option value="X25519, not Post-Quantum">X25519 (not Post-Quantum)</a-select-option> <a-select-option value="ML-KEM-768, Post-Quantum">ML-KEM-768 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) { |
