Add None option VLESS auth selection

This commit is contained in:
MHSanaei 2026-04-21 21:18:59 +02:00
parent b86473df02
commit 0a38624ba7
No known key found for this signature in database
GPG key ID: 7E4060F2FBE5AB7A
2 changed files with 7 additions and 1 deletions

View file

@ -25,6 +25,7 @@
<a-form-item label="Authentication"> <a-form-item label="Authentication">
<a-select v-model="inbound.settings.selectedAuth" @change="getNewVlessEnc" <a-select v-model="inbound.settings.selectedAuth" @change="getNewVlessEnc"
:dropdown-class-name="themeSwitcher.currentTheme"> :dropdown-class-name="themeSwitcher.currentTheme">
<a-select-option :value="undefined">None</a-select-option>
<a-select-option value="X25519, not Post-Quantum">X25519 (not <a-select-option value="X25519, not Post-Quantum">X25519 (not
Post-Quantum)</a-select-option> Post-Quantum)</a-select-option>
<a-select-option value="ML-KEM-768, Post-Quantum">ML-KEM-768 <a-select-option value="ML-KEM-768, Post-Quantum">ML-KEM-768

View file

@ -307,6 +307,12 @@
this.inbound.stream.tls.settings.echConfigList = ""; this.inbound.stream.tls.settings.echConfigList = "";
}, },
async getNewVlessEnc() { async getNewVlessEnc() {
const selected = inModal.inbound.settings.selectedAuth;
if (!selected) {
this.clearVlessEnc();
return;
}
inModal.loading(true); inModal.loading(true);
const msg = await HttpUtil.get("/panel/api/server/getNewVlessEnc"); const msg = await HttpUtil.get("/panel/api/server/getNewVlessEnc");
inModal.loading(false); inModal.loading(false);
@ -316,7 +322,6 @@
} }
const auths = msg.obj.auths || []; const auths = msg.obj.auths || [];
const selected = inModal.inbound.settings.selectedAuth;
const block = auths.find((a) => a.label === selected); const block = auths.find((a) => a.label === selected);
if (!block) { if (!block) {