From e4ba5ba53a27ee256364e7031df3d43afb3b3fe6 Mon Sep 17 00:00:00 2001 From: Sanaei Date: Mon, 4 Aug 2025 16:27:57 +0200 Subject: add ech support (#3310) Co-authored-by: Alireza Ahmadi --- web/html/modals/inbound_modal.html | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'web/html/modals/inbound_modal.html') diff --git a/web/html/modals/inbound_modal.html b/web/html/modals/inbound_modal.html index f11df2e2..b77e74e2 100644 --- a/web/html/modals/inbound_modal.html +++ b/web/html/modals/inbound_modal.html @@ -152,6 +152,16 @@ inModal.inbound.stream.reality.mldsa65Seed = msg.obj.seed; inModal.inbound.stream.reality.settings.mldsa65Verify = msg.obj.verify; }, + async getNewEchCert() { + inModal.loading(true); + const msg = await HttpUtil.post('/server/getNewEchCert', {sni: inModal.inbound.stream.tls.sni}); + inModal.loading(false); + if (!msg.success) { + return; + } + inModal.inbound.stream.tls.echServerKeys = msg.obj.echServerKeys; + inModal.inbound.stream.tls.settings.echConfigList = msg.obj.echConfigList; + }, }, }); -- cgit v1.2.3