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/form')
-rw-r--r--web/html/form/outbound.html5
-rw-r--r--web/html/form/protocol/vless.html24
-rw-r--r--web/html/form/tls_settings.html8
3 files changed, 32 insertions, 5 deletions
diff --git a/web/html/form/outbound.html b/web/html/form/outbound.html
index c7a786b7..cfaaafd7 100644
--- a/web/html/form/outbound.html
+++ b/web/html/form/outbound.html
@@ -226,6 +226,11 @@
</template>
<!-- vless settings -->
+ <template v-if="outbound.protocol === Protocols.VLESS">
+ <a-form-item label='encryption'>
+ <a-input v-model.trim="outbound.settings.encryption"></a-input>
+ </a-form-item>
+ </template>
<template v-if="outbound.canEnableTlsFlow()">
<a-form-item label='Flow'>
<a-select v-model="outbound.settings.flow" :dropdown-class-name="themeSwitcher.currentTheme">
diff --git a/web/html/form/protocol/vless.html b/web/html/form/protocol/vless.html
index 3cebda6e..6f421731 100644
--- a/web/html/form/protocol/vless.html
+++ b/web/html/form/protocol/vless.html
@@ -18,7 +18,29 @@
</table>
</a-collapse-panel>
</a-collapse>
-<template v-if="inbound.isTcp">
+<template v-if="!inbound.stream.isTLS || !inbound.stream.isReality">
+ <a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
+ <a-form-item label="Authentication">
+ <a-select v-model="inbound.settings.selectedAuth" @change="getNewVlessEnc" :dropdown-class-name="themeSwitcher.currentTheme">
+ <a-select-option value="X25519, not Post-Quantum">X25519 (not Post-Quantum)</a-select-option>
+ <a-select-option value="ML-KEM-768, Post-Quantum">ML-KEM-768 (Post-Quantum)</a-select-option>
+ </a-select>
+ </a-form-item>
+ <a-form-item label="decryption">
+ <a-input v-model.trim="inbound.settings.decryption"></a-input>
+ </a-form-item>
+ <a-form-item label="encryption">
+ <a-input v-model="inbound.settings.encryption" disabled></a-input>
+ </a-form-item>
+ <a-form-item label=" ">
+ <a-space>
+ <a-button type="primary" icon="import" @click="getNewVlessEnc">Get New keys</a-button>
+ <a-button danger @click="clearKeys">Clear</a-button>
+ </a-space>
+ </a-form-item>
+ </a-form>
+</template>
+<template v-if="inbound.isTcp && !inbound.settings.encryption">
<a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
<a-form-item label="Fallbacks">
<a-button icon="plus" type="primary" size="small" @click="inbound.settings.addFallback()"></a-button>
diff --git a/web/html/form/tls_settings.html b/web/html/form/tls_settings.html
index 3a1802a3..82031bd7 100644
--- a/web/html/form/tls_settings.html
+++ b/web/html/form/tls_settings.html
@@ -5,13 +5,13 @@
<a-form-item label='{{ i18n "security" }}'>
<a-radio-group v-model="inbound.stream.security" button-style="solid">
<a-radio-button value="none">{{ i18n "none" }}</a-radio-button>
- <a-radio-button v-if="inbound.canEnableReality()" value="reality">Reality</a-radio-button>
- <a-radio-button value="tls">TLS</a-radio-button>
+ <a-radio-button v-if="inbound.canEnableReality() && !inbound.settings.encryption" value="reality">Reality</a-radio-button>
+ <a-radio-button v-if="!inbound.settings.encryption" value="tls">TLS</a-radio-button>
</a-radio-group>
</a-form-item>
<!-- tls settings -->
- <template v-if="inbound.stream.isTls">
+ <template v-if="inbound.stream.isTls && !inbound.settings.encryption">
<a-form-item label="SNI" placeholder="Server Name Indication">
<a-input v-model.trim="inbound.stream.tls.sni"></a-input>
</a-form-item>
@@ -121,7 +121,7 @@
</template>
<!-- reality settings -->
- <template v-if="inbound.stream.isReality">
+ <template v-if="inbound.stream.isReality && !inbound.settings.encryption">
{{template "form/realitySettings"}}
</template>
</a-form>