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:
authorMohammad Movaghari <52345697+mohammadmovaghari@users.noreply.github.com>2023-04-12 16:29:17 +0300
committerGitHub <noreply@github.com>2023-04-12 16:29:17 +0300
commitc575425292e2c4c690728174e42a6f34963394c2 (patch)
treec9b033457baa55a98cea23a8769645f8f3dbd476 /web/html/xui/form/tls_settings.html
parent63f71e527ceddc724e0bd2893c4946b01f3a5f6c (diff)
parent82b2809fccb6a131b4f84e2ca236f8bea567beae (diff)
Merge branch 'MHSanaei:main' into main
Diffstat (limited to 'web/html/xui/form/tls_settings.html')
-rw-r--r--web/html/xui/form/tls_settings.html55
1 files changed, 53 insertions, 2 deletions
diff --git a/web/html/xui/form/tls_settings.html b/web/html/xui/form/tls_settings.html
index acb0a815..f954b76b 100644
--- a/web/html/xui/form/tls_settings.html
+++ b/web/html/xui/form/tls_settings.html
@@ -1,11 +1,32 @@
{{define "form/tlsSettings"}}
<!-- tls enable -->
<a-form layout="inline" v-if="inbound.canSetTls()">
- <a-form-item label="TLS">
+ <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.canEnableXTLS()" label="XTLS">
+ <a-form-item v-if="inbound.canEnableReality()">
+ <span slot="label">
+ Reality
+ <a-tooltip>
+ <template slot="title">
+ <span>{{ i18n "pages.inbounds.Realitydec" }}</span>
+ </template>
+ <a-icon type="question-circle" theme="filled"></a-icon>
+ </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.XTLSdec" }}</span>
+ </template>
+ <a-icon type="question-circle" theme="filled"></a-icon>
+ </a-tooltip>
+ </span>
<a-switch v-model="inbound.XTLS"></a-switch>
</a-form-item>
</a-form>
@@ -61,6 +82,7 @@
<a-form-item label='{{ i18n "pages.inbounds.keyPath" }}'>
<a-input v-model.trim="inbound.stream.tls.certs[0].keyFile" style="width:300px;"></a-input>
</a-form-item>
+ <a-button @click="setDefaultCertData">{{ i18n "pages.inbounds.setDefaultCert" }}</a-button>
</template>
<template v-else>
<a-form-item label='{{ i18n "pages.inbounds.publicKeyContent" }}'>
@@ -71,4 +93,33 @@
</a-form-item>
</template>
</a-form>
+<a-form v-else-if="inbound.reality" layout="inline">
+ <a-form-item label="show">
+ <a-switch v-model="inbound.stream.reality.show">
+ </a-switch>
+ </a-form-item>
+ <a-form-item label="xver">
+ <a-input type="number" v-model.number="inbound.stream.reality.xver" :min="0" style="width: 60px"></a-input>
+ </a-form-item>
+ <a-form-item label="uTLS" >
+ <a-select v-model="inbound.stream.reality.fingerprint" style="width: 135px">
+ <a-select-option v-for="key in UTLS_FINGERPRINT" :value="key">[[ key ]]</a-select-option>
+ </a-select>
+ </a-form-item>
+ <a-form-item label="dest">
+ <a-input v-model.trim="inbound.stream.reality.dest" style="width: 360px"></a-input>
+ </a-form-item>
+ <a-form-item label="serverNames">
+ <a-input v-model.trim="inbound.stream.reality.serverNames" style="width: 360px"></a-input>
+ </a-form-item>
+ <a-form-item label="privateKey">
+ <a-input v-model.trim="inbound.stream.reality.privateKey" style="width: 360px"></a-input>
+ </a-form-item>
+ <a-form-item label="publicKey">
+ <a-input v-model.trim="inbound.stream.reality.publicKey" style="width: 360px"></a-input>
+ </a-form-item>
+ <a-form-item label="shortIds">
+ <a-input v-model.trim="inbound.stream.reality.shortIds"></a-input>
+ </a-form-item>
+</a-form>
{{end}} \ No newline at end of file