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:
Diffstat (limited to 'web/html/xui/form/tls_settings.html')
-rw-r--r--web/html/xui/form/tls_settings.html54
1 files changed, 52 insertions, 2 deletions
diff --git a/web/html/xui/form/tls_settings.html b/web/html/xui/form/tls_settings.html
index c083aa20..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>
@@ -72,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