diff options
Diffstat (limited to 'web/html/modals')
| -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; |
