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-17 01:01:14 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-03-17 01:01:14 +0300
commitbc56e637376142c370c31b17558fc3778a863bd2 (patch)
treec79da826c4dc58ca6b024a419959ed3475599a10 /web/html/xui/form/tls_settings.html
parenta3e562896178fadc3df5a921669e75824180ccf8 (diff)
pack1
Diffstat (limited to 'web/html/xui/form/tls_settings.html')
-rw-r--r--web/html/xui/form/tls_settings.html42
1 files changed, 27 insertions, 15 deletions
diff --git a/web/html/xui/form/tls_settings.html b/web/html/xui/form/tls_settings.html
index ea3216e7..532850c7 100644
--- a/web/html/xui/form/tls_settings.html
+++ b/web/html/xui/form/tls_settings.html
@@ -5,13 +5,22 @@
<a-switch v-model="inbound.tls">
</a-switch>
</a-form-item>
- <a-form-item v-if="inbound.canEnableXTls()" label="XTLS">
- <a-switch v-model="inbound.xtls"></a-switch>
+ <a-form-item v-if="inbound.canEnableXTLS()" label="XTLS">
+ <a-switch v-model="inbound.XTLS"></a-switch>
</a-form-item>
</a-form>
<!-- tls settings -->
-<a-form v-if="inbound.tls || inbound.xtls"layout="inline">
+<a-form v-if="inbound.tls || inbound.XTLS"layout="inline">
+ <a-form-item label="SNI" placeholder="Server Name Indication" v-if="inbound.tls">
+ <a-input v-model.trim="inbound.stream.tls.settings[0].serverName"></a-input>
+ </a-form-item>
+ <a-form-item label="CipherSuites">
+ <a-select v-model="inbound.stream.tls.cipherSuites" style="width: 300px">
+ <a-select-option value="">auto</a-select-option>
+ <a-select-option v-for="key in TLS_CIPHER_OPTION" :value="key">[[ key ]]</a-select-option>
+ </a-select>
+ </a-form-item>
<a-form-item label="MinVersion">
<a-select v-model="inbound.stream.tls.minVersion" style="width: 60px">
<a-select-option v-for="key in TLS_VERSION_OPTION" :value="key">[[ key ]]</a-select-option>
@@ -22,17 +31,20 @@
<a-select-option v-for="key in TLS_VERSION_OPTION" :value="key">[[ key ]]</a-select-option>
</a-select>
</a-form-item>
- <a-form-item label="CipherSuites">
- <a-select v-model="inbound.stream.tls.cipherSuites" style="width: 300px">
- <a-select-option value="">auto</a-select-option>
- <a-select-option v-for="key in TLS_CIPHER_OPTION" :value="key">[[ key ]]</a-select-option>
- </a-select>
- </a-form-item>
+ <a-form-item label="uTLS" v-if="inbound.tls" >
+ <a-select v-model="inbound.stream.tls.settings[0].fingerprint" style="width: 135px">
+ <a-select-option value=''>None</a-select-option>
+ <a-select-option v-for="key in UTLS_FINGERPRINT" :value="key">[[ key ]]</a-select-option>
+ </a-select>
+ </a-form-item>
<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">
- <a-input v-model.trim="inbound.stream.tls.alpn"></a-input>
+ <a-form-item label="Alpn" placeholder="http/1.1,h2" 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>
<a-form-item label='{{ i18n "certificate" }}'>
<a-radio-group v-model="inbound.stream.tls.certs[0].useFile" button-style="solid">
@@ -42,18 +54,18 @@
</a-form-item>
<template v-if="inbound.stream.tls.certs[0].useFile">
<a-form-item label='{{ i18n "pages.inbounds.publicKeyPath" }}'>
- <a-input v-model.trim="inbound.stream.tls.certs[0].certFile"></a-input>
+ <a-input v-model.trim="inbound.stream.tls.certs[0].certFile" style="width:300px;"></a-input>
</a-form-item>
<a-form-item label='{{ i18n "pages.inbounds.keyPath" }}'>
- <a-input v-model.trim="inbound.stream.tls.certs[0].keyFile"></a-input>
+ <a-input v-model.trim="inbound.stream.tls.certs[0].keyFile" style="width:300px;"></a-input>
</a-form-item>
</template>
<template v-else>
<a-form-item label='{{ i18n "pages.inbounds.publicKeyContent" }}'>
- <a-input type="textarea" :rows="2" v-model="inbound.stream.tls.certs[0].cert"></a-input>
+ <a-input type="textarea" :rows="3" style="width:300px;" v-model="inbound.stream.tls.certs[0].cert"></a-input>
</a-form-item>
<a-form-item label='{{ i18n "pages.inbounds.keyContent" }}'>
- <a-input type="textarea" :rows="2" v-model="inbound.stream.tls.certs[0].key"></a-input>
+ <a-input type="textarea" :rows="3" style="width:300px;" v-model="inbound.stream.tls.certs[0].key"></a-input>
</a-form-item>
</template>
</a-form>