diff options
Diffstat (limited to 'web/html')
| -rw-r--r-- | web/html/form/tls_settings.html | 15 | ||||
| -rw-r--r-- | web/html/modals/inbound_modal.html | 10 |
2 files changed, 25 insertions, 0 deletions
diff --git a/web/html/form/tls_settings.html b/web/html/form/tls_settings.html index 0de6dae5..3e61b5a2 100644 --- a/web/html/form/tls_settings.html +++ b/web/html/form/tls_settings.html @@ -106,6 +106,21 @@ <a-switch v-model="cert.buildChain"></a-switch> </a-form-item> </template> + <a-form-item label='ECH key'> + <a-input v-model="inbound.stream.tls.echServerKeys"></a-input> + </a-form-item> + <a-form-item label='ECH config'> + <a-input v-model="inbound.stream.tls.settings.echConfigList"></a-input> + </a-form-item> + <a-form-item label='ECH force query'> + <a-select v-model="inbound.stream.tls.echForceQuery" + :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select-option v-for="key in ['none', 'half', 'full']" :value="key">[[ key ]]</a-select-option> + </a-select> + </a-form-item> + <a-form-item label=" "> + <a-button type="primary" icon="import" @click="getNewEchCert">Get New ECH Cert</a-button> + </a-form-item> </template> <!-- reality settings --> 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; + }, }, }); |
