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:
authorMHSanaei <ho3ein.sanaei@gmail.com>2026-02-01 04:34:23 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2026-02-01 04:36:57 +0300
commit3af6497577b7da4149a6432ea83ae4f229da6e45 (patch)
tree172c642eaf9721748beb2b4bf6e90d02096c665a /web/html/form/outbound.html
parentc59f54bb0ef9ef06ade11aa75fba61224830be7e (diff)
inbound : finalmask
Diffstat (limited to 'web/html/form/outbound.html')
-rw-r--r--web/html/form/outbound.html51
1 files changed, 25 insertions, 26 deletions
diff --git a/web/html/form/outbound.html b/web/html/form/outbound.html
index 074137f7..9ca0eab6 100644
--- a/web/html/form/outbound.html
+++ b/web/html/form/outbound.html
@@ -407,21 +407,6 @@
<!-- kcp -->
<template v-if="outbound.stream.network === 'kcp'">
- <a-form-item label='{{ i18n "camouflage" }}'>
- <a-select v-model="outbound.stream.kcp.type"
- :dropdown-class-name="themeSwitcher.currentTheme">
- <a-select-option value="none">None</a-select-option>
- <a-select-option value="srtp">SRTP</a-select-option>
- <a-select-option value="utp">uTP</a-select-option>
- <a-select-option value="wechat-video">WeChat</a-select-option>
- <a-select-option value="dtls">DTLS 1.2</a-select-option>
- <a-select-option value="wireguard">WireGuard</a-select-option>
- <a-select-option value="dns">DNS</a-select-option>
- </a-select>
- </a-form-item>
- <a-form-item label='{{ i18n "password" }}'>
- <a-input v-model="outbound.stream.kcp.seed"></a-input>
- </a-form-item>
<a-form-item label='MTU'>
<a-input-number v-model.number="outbound.stream.kcp.mtu"
min="0"></a-input-number>
@@ -607,7 +592,7 @@
<template v-if="outbound.canEnableStream()">
<a-form-item label="UDP Masks">
<a-button icon="plus" type="primary" size="small"
- @click="outbound.stream.addUdpMask(outbound.protocol === Protocols.Hysteria ? 'salamander' : 'mkcp-aes128gcm')"></a-button>
+ @click="outbound.stream.addUdpMask(outbound.protocol === Protocols.Hysteria ? 'salamander' : (outbound.stream.network === 'kcp' ? 'mkcp-aes128gcm' : 'xdns'))"></a-button>
</a-form-item>
<template
v-if="outbound.stream.finalmask.udp && outbound.stream.finalmask.udp.length > 0">
@@ -623,25 +608,39 @@
<a-select v-model="mask.type"
@change="(type) => mask.settings = mask._getDefaultSettings(type, {})"
:dropdown-class-name="themeSwitcher.currentTheme">
- <a-select-option v-if="outbound.protocol === Protocols.Hysteria" value="salamander">
+ <!-- Salamander for Hysteria2 only -->
+ <a-select-option v-if="outbound.protocol === Protocols.Hysteria"
+ value="salamander">
Salamander (Hysteria2)</a-select-option>
- <a-select-option value="mkcp-aes128gcm">
+ <!-- mKCP-specific masks -->
+ <a-select-option v-if="outbound.stream.network === 'kcp'"
+ value="mkcp-aes128gcm">
mKCP AES-128-GCM</a-select-option>
- <a-select-option value="header-dns">
+ <a-select-option v-if="outbound.stream.network === 'kcp'"
+ value="header-dns">
Header DNS</a-select-option>
- <a-select-option value="header-dtls">
+ <a-select-option v-if="outbound.stream.network === 'kcp'"
+ value="header-dtls">
Header DTLS 1.2</a-select-option>
- <a-select-option value="header-srtp">
+ <a-select-option v-if="outbound.stream.network === 'kcp'"
+ value="header-srtp">
Header SRTP</a-select-option>
- <a-select-option value="header-utp">
+ <a-select-option v-if="outbound.stream.network === 'kcp'"
+ value="header-utp">
Header uTP</a-select-option>
- <a-select-option value="header-wechat">
+ <a-select-option v-if="outbound.stream.network === 'kcp'"
+ value="header-wechat">
Header WeChat Video</a-select-option>
- <a-select-option value="header-wireguard">
+ <a-select-option v-if="outbound.stream.network === 'kcp'"
+ value="header-wireguard">
Header WireGuard</a-select-option>
- <a-select-option value="mkcp-original">
+ <a-select-option v-if="outbound.stream.network === 'kcp'"
+ value="mkcp-original">
mKCP Original</a-select-option>
- <a-select-option value="xdns">
+ <!-- xDNS for TCP/WS/HTTPUpgrade/XHTTP -->
+ <a-select-option
+ v-if="['tcp', 'ws', 'httpupgrade', 'xhttp'].includes(outbound.stream.network)"
+ value="xdns">
xDNS (Experimental)</a-select-option>
</a-select>
</a-form-item>