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/stream/stream_finalmask.html
parentc59f54bb0ef9ef06ade11aa75fba61224830be7e (diff)
inbound : finalmask
Diffstat (limited to 'web/html/form/stream/stream_finalmask.html')
-rw-r--r--web/html/form/stream/stream_finalmask.html70
1 files changed, 70 insertions, 0 deletions
diff --git a/web/html/form/stream/stream_finalmask.html b/web/html/form/stream/stream_finalmask.html
new file mode 100644
index 00000000..4ed7d6a1
--- /dev/null
+++ b/web/html/form/stream/stream_finalmask.html
@@ -0,0 +1,70 @@
+{{define "form/streamFinalMask"}}
+<a-divider :style="{ margin: '5px 0 0' }"></a-divider>
+<a-form :colon="false" :label-col="{ md: {span:8} }"
+ :wrapper-col="{ md: {span:14} }">
+ <a-form-item label="UDP Masks">
+ <a-button icon="plus" type="primary" size="small"
+ @click="inbound.stream.addUdpMask(inbound.stream.network === 'kcp' ? 'mkcp-aes128gcm' : 'xdns')"></a-button>
+ </a-form-item>
+ <template
+ v-if="inbound.stream.finalmask.udp && inbound.stream.finalmask.udp.length > 0">
+ <a-form v-for="(mask, index) in inbound.stream.finalmask.udp"
+ :key="index" :colon="false"
+ :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
+ <a-divider :style="{ margin: '0' }"> UDP Mask [[ index + 1 ]]
+ <a-icon type="delete"
+ @click="() => inbound.stream.delUdpMask(index)"
+ :style="{ color: 'rgb(255, 77, 79)', cursor: 'pointer' }"></a-icon>
+ </a-divider>
+ <a-form-item label='Type'>
+ <a-select v-model="mask.type"
+ @change="(type) => mask.settings = mask._getDefaultSettings(type, {})"
+ :dropdown-class-name="themeSwitcher.currentTheme">
+ <!-- mKCP-specific masks -->
+ <a-select-option v-if="inbound.stream.network === 'kcp'"
+ value="mkcp-aes128gcm">
+ mKCP AES-128-GCM</a-select-option>
+ <a-select-option v-if="inbound.stream.network === 'kcp'"
+ value="header-dns">
+ Header DNS</a-select-option>
+ <a-select-option v-if="inbound.stream.network === 'kcp'"
+ value="header-dtls">
+ Header DTLS 1.2</a-select-option>
+ <a-select-option v-if="inbound.stream.network === 'kcp'"
+ value="header-srtp">
+ Header SRTP</a-select-option>
+ <a-select-option v-if="inbound.stream.network === 'kcp'"
+ value="header-utp">
+ Header uTP</a-select-option>
+ <a-select-option v-if="inbound.stream.network === 'kcp'"
+ value="header-wechat">
+ Header WeChat Video</a-select-option>
+ <a-select-option v-if="inbound.stream.network === 'kcp'"
+ value="header-wireguard">
+ Header WireGuard</a-select-option>
+ <a-select-option v-if="inbound.stream.network === 'kcp'"
+ value="mkcp-original">
+ mKCP Original</a-select-option>
+ <!-- xDNS for TCP/WS/HTTPUpgrade/XHTTP -->
+ <a-select-option
+ v-if="['tcp', 'ws', 'httpupgrade', 'xhttp'].includes(inbound.stream.network)"
+ value="xdns">
+ xDNS (Experimental)</a-select-option>
+ </a-select>
+ </a-form-item>
+ <!-- Settings for password-based masks -->
+ <a-form-item label='Password'
+ v-if="['mkcp-aes128gcm'].includes(mask.type)">
+ <a-input v-model.trim="mask.settings.password"
+ placeholder="Obfuscation password"></a-input>
+ </a-form-item>
+ <!-- Settings for domain-based masks -->
+ <a-form-item label='Domain'
+ v-if="['header-dns', 'xdns'].includes(mask.type)">
+ <a-input v-model.trim="mask.settings.domain"
+ placeholder="e.g., www.example.com"></a-input>
+ </a-form-item>
+ </a-form>
+ </template>
+</a-form>
+{{end}}