Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web/html
diff options
context:
space:
mode:
authorAlireza Ahmadi <alireza7@gmail.com>2023-12-08 18:46:44 +0300
committerAlireza Ahmadi <alireza7@gmail.com>2023-12-08 18:46:44 +0300
commit549f230221d7139270efefd76ac81f37e1a747f9 (patch)
treea685e494fc145d8b46b6fb9e6bc2fbe36291d9f5 /web/html
parent4ee986aa718aecaad45c9eda03ff57aea0f535cf (diff)
optimize security in front codes #1300
Diffstat (limited to 'web/html')
-rw-r--r--web/html/xui/form/tls_settings.html30
-rw-r--r--web/html/xui/inbound_modal.html2
2 files changed, 11 insertions, 21 deletions
diff --git a/web/html/xui/form/tls_settings.html b/web/html/xui/form/tls_settings.html
index 493aef75..eb201862 100644
--- a/web/html/xui/form/tls_settings.html
+++ b/web/html/xui/form/tls_settings.html
@@ -1,34 +1,24 @@
{{define "form/tlsSettings"}}
<!-- tls enable -->
-<a-form layout="inline" v-if="inbound.canSetTls()">
+<a-form layout="inline" v-if="inbound.canEnableTls()">
<a-divider style="margin:0;"></a-divider>
- <a-form-item v-if="inbound.canEnableTls()" label="TLS">
- <a-switch v-model="inbound.tls">
- </a-switch>
- </a-form-item>
- <a-form-item v-if="inbound.canEnableReality()">
- <span slot="label">
- Reality
+ <a-form-item label='{{ i18n "security" }}'>
+ <a-radio-group v-model="inbound.stream.security" button-style="solid">
+ <a-radio-button value="none">{{ i18n "none" }}</a-radio-button>
+ <a-radio-button value="tls">TLS</a-radio-button>
<a-tooltip>
<template slot="title">
- <span>{{ i18n "pages.inbounds.realityDesc" }}</span>
+ <span>{{ i18n "pages.inbounds.xtlsDesc" }}</span>
</template>
- <a-icon type="question-circle" theme="filled"></a-icon>
+ <a-radio-button v-if="inbound.canEnableXtls()" value="xtls">XTLS</a-radio-button>
</a-tooltip>
- </span>
- <a-switch v-model="inbound.reality"></a-switch>
- </a-form-item>
- <a-form-item v-if="inbound.canEnableXtls()">
- <span slot="label">
- XTLS
<a-tooltip>
<template slot="title">
- <span>{{ i18n "pages.inbounds.xtlsDesc" }}</span>
+ <span>{{ i18n "pages.inbounds.realityDesc" }}</span>
</template>
- <a-icon type="question-circle" theme="filled"></a-icon>
+ <a-radio-button v-if="inbound.canEnableReality()" value="reality">Reality</a-radio-button>
</a-tooltip>
- </span>
- <a-switch v-model="inbound.xtls"></a-switch>
+ </a-radio-group>
</a-form-item>
</a-form>
diff --git a/web/html/xui/inbound_modal.html b/web/html/xui/inbound_modal.html
index 99cb05fe..df42225c 100644
--- a/web/html/xui/inbound_modal.html
+++ b/web/html/xui/inbound_modal.html
@@ -93,7 +93,7 @@
},
methods: {
streamNetworkChange() {
- if (!inModal.inbound.canSetTls()) {
+ if (!inModal.inbound.canEnableTls()) {
this.inModal.inbound.stream.security = 'none';
}
if (!inModal.inbound.canEnableReality()) {