From 1208fafef4dbfde5b5abb2c63fdf2bb440348fe8 Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Mon, 8 Sep 2025 10:08:55 +0200 Subject: [PATCH] minor change --- web/assets/js/model/inbound.js | 9 +++++---- web/html/form/protocol/vless.html | 1 + web/html/modals/inbound_modal.html | 1 + 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/web/assets/js/model/inbound.js b/web/assets/js/model/inbound.js index c922beb5..d8b612f9 100644 --- a/web/assets/js/model/inbound.js +++ b/web/assets/js/model/inbound.js @@ -1859,15 +1859,16 @@ Inbound.VLESSSettings = class extends Inbound.Settings { protocol, vlesses = [new Inbound.VLESSSettings.VLESS()], decryption = "none", - encryption = "", + encryption = undefined, fallbacks = [], + selectedAuth = undefined, ) { super(protocol); this.vlesses = vlesses; this.decryption = decryption; this.encryption = encryption; this.fallbacks = fallbacks; - this.selectedAuth = "X25519, not Post-Quantum"; + this.selectedAuth = selectedAuth; } addFallback() { @@ -1884,9 +1885,9 @@ Inbound.VLESSSettings = class extends Inbound.Settings { (json.clients || []).map(client => Inbound.VLESSSettings.VLESS.fromJson(client)), json.decryption, json.encryption, - Inbound.VLESSSettings.Fallback.fromJson(json.fallbacks || []) + Inbound.VLESSSettings.Fallback.fromJson(json.fallbacks || []), + json.selectedAuth ); - obj.selectedAuth = json.selectedAuth || "X25519, not Post-Quantum"; return obj; } diff --git a/web/html/form/protocol/vless.html b/web/html/form/protocol/vless.html index 6f421731..69e74285 100644 --- a/web/html/form/protocol/vless.html +++ b/web/html/form/protocol/vless.html @@ -22,6 +22,7 @@ + None X25519 (not Post-Quantum) ML-KEM-768 (Post-Quantum) diff --git a/web/html/modals/inbound_modal.html b/web/html/modals/inbound_modal.html index a7a59c99..4245d82e 100644 --- a/web/html/modals/inbound_modal.html +++ b/web/html/modals/inbound_modal.html @@ -184,6 +184,7 @@ clearKeys() { this.inbound.settings.decryption = 'none'; this.inbound.settings.encryption = ''; + this.inbound.settings.selectedAuth = undefined; } },