diff --git a/web/html/form/protocol/vless.html b/web/html/form/protocol/vless.html
index 69e74285..baa5a285 100644
--- a/web/html/form/protocol/vless.html
+++ b/web/html/form/protocol/vless.html
@@ -22,7 +22,6 @@
- None
X25519 (not Post-Quantum)
ML-KEM-768 (Post-Quantum)
@@ -36,12 +35,12 @@
Get New keys
- Clear
+ Clear
-
+
diff --git a/web/html/form/reality_settings.html b/web/html/form/reality_settings.html
index feacccbe..79477270 100644
--- a/web/html/form/reality_settings.html
+++ b/web/html/form/reality_settings.html
@@ -48,7 +48,10 @@
- Get New Cert
+
+ Get New Cert
+ Clear
+
@@ -57,7 +60,10 @@
- Get New Seed
+
+ Get New Seed
+ Clear
+
{{end}}
\ No newline at end of file
diff --git a/web/html/form/tls_settings.html b/web/html/form/tls_settings.html
index 82031bd7..c3844a7f 100644
--- a/web/html/form/tls_settings.html
+++ b/web/html/form/tls_settings.html
@@ -5,13 +5,13 @@
{{ i18n "none" }}
- Reality
- TLS
+ Reality
+ TLS
-
+
@@ -116,12 +116,15 @@
+
Get New ECH Cert
+ Clear
+
-
+
{{template "form/realitySettings"}}
diff --git a/web/html/modals/inbound_modal.html b/web/html/modals/inbound_modal.html
index 60af57cb..60771c25 100644
--- a/web/html/modals/inbound_modal.html
+++ b/web/html/modals/inbound_modal.html
@@ -140,6 +140,10 @@
inModal.inbound.stream.reality.privateKey = msg.obj.privateKey;
inModal.inbound.stream.reality.settings.publicKey = msg.obj.publicKey;
},
+ clearX25519Cert() {
+ this.inbound.stream.reality.privateKey = '';
+ this.inbound.stream.reality.settings.publicKey = '';
+ },
async getNewmldsa65() {
inModal.loading(true);
const msg = await HttpUtil.post('/server/getNewmldsa65');
@@ -150,6 +154,10 @@
inModal.inbound.stream.reality.mldsa65Seed = msg.obj.seed;
inModal.inbound.stream.reality.settings.mldsa65Verify = msg.obj.verify;
},
+ clearMldsa65() {
+ this.inbound.stream.reality.mldsa65Seed = '';
+ this.inbound.stream.reality.settings.mldsa65Verify = '';
+ },
async getNewEchCert() {
inModal.loading(true);
const msg = await HttpUtil.post('/server/getNewEchCert', { sni: inModal.inbound.stream.tls.sni });
@@ -160,6 +168,10 @@
inModal.inbound.stream.tls.echServerKeys = msg.obj.echServerKeys;
inModal.inbound.stream.tls.settings.echConfigList = msg.obj.echConfigList;
},
+ clearEchCert() {
+ this.inbound.stream.tls.echServerKeys = '';
+ this.inbound.stream.tls.settings.echConfigList = '';
+ },
async getNewVlessEnc() {
inModal.loading(true);
const msg = await HttpUtil.post('/server/getNewVlessEnc');
@@ -181,7 +193,7 @@
inModal.inbound.settings.decryption = block.decryption;
inModal.inbound.settings.encryption = block.encryption;
},
- clearKeys() {
+ clearVlessEnc() {
this.inbound.settings.decryption = 'none';
this.inbound.settings.encryption = 'none';
this.inbound.settings.selectedAuth = undefined;