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:
Diffstat (limited to 'web/html')
-rw-r--r--web/html/xui/form/tls_settings.html54
-rw-r--r--web/html/xui/inbounds.html3
2 files changed, 54 insertions, 3 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
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html
index 0ea018af..b962efcb 100644
--- a/web/html/xui/inbounds.html
+++ b/web/html/xui/inbounds.html
@@ -134,6 +134,7 @@
<a-tag style="margin:0;" color="green">[[ dbInbound.toInbound().stream.network ]]</a-tag>
<a-tag style="margin:0;" v-if="dbInbound.toInbound().stream.isTls" color="cyan">TLS</a-tag>
<a-tag style="margin:0;" v-if="dbInbound.toInbound().stream.isXTLS" color="cyan">XTLS</a-tag>
+ <a-tag style="margin:0;" v-if="dbInbound.toInbound().stream.isReality" color="cyan">Reality</a-tag>
</template>
</template>
<template slot="clients" slot-scope="text, dbInbound">
@@ -239,7 +240,7 @@
}, {
title: '{{ i18n "pages.inbounds.protocol" }}',
align: 'left',
- width: 70,
+ width: 80,
scopedSlots: { customRender: 'protocol' },
}, {
title: '{{ i18n "clients" }}',