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:
authorShahin <115543613+shahin-io@users.noreply.github.com>2024-02-17 19:23:40 +0300
committerGitHub <noreply@github.com>2024-02-17 19:23:40 +0300
commitea67b9760d538cbbcdd858c6a73aab74d878ff12 (patch)
tree5cf58b37d0ac8a4ae0822ff807c8b8f52d94814e /web/html
parent3a503f12c8826fa7197f08f5af50c1911f3adcfe (diff)
Minor fix in outbound form (#1810)
* Update outbound.html * Update outbound.js * Update outbound.html * Update outbound.html
Diffstat (limited to 'web/html')
-rw-r--r--web/html/xui/form/outbound.html16
1 files changed, 11 insertions, 5 deletions
diff --git a/web/html/xui/form/outbound.html b/web/html/xui/form/outbound.html
index 3f11907d..fb6a7af7 100644
--- a/web/html/xui/form/outbound.html
+++ b/web/html/xui/form/outbound.html
@@ -213,17 +213,23 @@
</a-form-item>
</template>
-<!-- shadowsocks -->
-<template v-if="outbound.protocol === Protocols.Shadowsocks">
+<!-- trojan/shadowsocks -->
+ <template v-if="[Protocols.Trojan, Protocols.Shadowsocks].includes(outbound.protocol)">
+ <a-form-item label='{{ i18n "password" }}'>
+ <a-input v-model.trim="outbound.settings.password"></a-input>
+ </a-form-item>
+ </template>
+ <!-- shadowsocks -->
+ <template v-if="outbound.protocol === Protocols.Shadowsocks">
<a-form-item label='{{ i18n "encryption" }}'>
<a-select v-model="outbound.settings.method" :dropdown-class-name="themeSwitcher.currentTheme">
- <a-select-option v-for="(method,method_name) in SSMethods" :value="method">[[ method_name ]]</a-select-option>
+ <a-select-option v-for="(method, method_name) in SSMethods" :value="method">[[ method_name ]]</a-select-option>
</a-select>
</a-form-item>
<a-form-item label='UDP over TCP'>
<a-switch v-model="outbound.settings.uot"></a-switch>
</a-form-item>
- </template>
+ </template>
</template>
<!-- stream settings -->
@@ -381,7 +387,7 @@
<!-- reality settings -->
<template v-if="outbound.stream.isReality">
- <a-form-item label='{{ i18n "domainName" }}'>
+ <a-form-item label="SNI">
<a-input v-model.trim="outbound.stream.reality.serverName"></a-input>
</a-form-item>
<a-form-item label="uTLS">