diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2025-09-08 22:17:48 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2025-09-08 22:17:48 +0300 |
| commit | c7ba6ae909c52c1acd3107e032142beffbb53cf0 (patch) | |
| tree | f538f043f69de3784f6000e5bb89606a845426ff /web/html/modals/inbound_modal.html | |
| parent | 3edf79e589ae765562f7360b589029ec8f198bc8 (diff) | |
add clear button
Diffstat (limited to 'web/html/modals/inbound_modal.html')
| -rw-r--r-- | web/html/modals/inbound_modal.html | 14 |
1 files changed, 13 insertions, 1 deletions
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; |
