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
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-03-24 16:12:08 +0300
committerGitHub <noreply@github.com>2023-03-24 16:12:08 +0300
commit17f64462d21f84f353308ac084640467ed7eb54c (patch)
tree2c56028d540c59bd4b5da9b8653c4a5710c53a81 /web/html/xui/form
parent466ad1605b3a7b50ddcf295a06fd6b2eba30f607 (diff)
parentbbec13c0da179a29c9b2989e76c43b5beaef2827 (diff)
Merge pull request #73 from MHSanaei/TLS-enhancements
Tls enhancements
Diffstat (limited to 'web/html/xui/form')
-rw-r--r--web/html/xui/form/protocol/trojan.html2
-rw-r--r--web/html/xui/form/protocol/vless.html2
-rw-r--r--web/html/xui/form/tls_settings.html12
3 files changed, 9 insertions, 7 deletions
diff --git a/web/html/xui/form/protocol/trojan.html b/web/html/xui/form/protocol/trojan.html
index 840ce17d..70286735 100644
--- a/web/html/xui/form/protocol/trojan.html
+++ b/web/html/xui/form/protocol/trojan.html
@@ -76,7 +76,7 @@
</table>
</a-collapse-panel>
</a-collapse>
-<template v-if="inbound.isTcp && inbound.tls">
+<template v-if="inbound.isTcp && (inbound.tls || inbound.xtls)">
<a-form layout="inline">
<a-form-item label="Fallbacks">
<a-row>
diff --git a/web/html/xui/form/protocol/vless.html b/web/html/xui/form/protocol/vless.html
index 6b3436f0..91691e93 100644
--- a/web/html/xui/form/protocol/vless.html
+++ b/web/html/xui/form/protocol/vless.html
@@ -82,7 +82,7 @@
</table>
</a-collapse-panel>
</a-collapse>
-<template v-if="inbound.isTcp && inbound.tls">
+<template v-if="inbound.isTcp && (inbound.tls || inbound.xtls)">
<a-form layout="inline">
<a-form-item label="Fallbacks">
<a-row>
diff --git a/web/html/xui/form/tls_settings.html b/web/html/xui/form/tls_settings.html
index aa9c6c6d..acb0a815 100644
--- a/web/html/xui/form/tls_settings.html
+++ b/web/html/xui/form/tls_settings.html
@@ -40,11 +40,13 @@
<a-form-item label='{{ i18n "domainName" }}'>
<a-input v-model.trim="inbound.stream.tls.server"></a-input>
</a-form-item>
- <a-form-item label="Alpn" v-if="inbound.tls">
- <a-select v-model="inbound.stream.tls.alpn[0]" style="width:200px">
- <a-select-option value=''>auto</a-select-option>
- <a-select-option v-for="key in ALPN_OPTION" :value="key">[[ key ]]</a-select-option>
- </a-select>
+ <a-form-item label="Alpn">
+ <a-checkbox-group v-model="inbound.stream.tls.alpn" style="width:200px">
+ <a-checkbox v-for="key in ALPN_OPTION" :value="key">[[ key ]]</a-checkbox>
+ </a-checkbox-group>
+ </a-form-item>
+ <a-form-item label="Allow insecure">
+ <a-switch v-model="inbound.stream.tls.settings[0].allowInsecure"></a-switch>
</a-form-item>
<a-form-item label='{{ i18n "certificate" }}'>
<a-radio-group v-model="inbound.stream.tls.certs[0].useFile" button-style="solid">