mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-04-26 01:15:57 +00:00
Add None option VLESS auth selection
This commit is contained in:
parent
b86473df02
commit
0a38624ba7
2 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue