diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-04-20 17:38:33 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-04-20 17:55:06 +0300 |
| commit | 04b4fb438487ada373fb3e6437b4cdb28b5174de (patch) | |
| tree | 3814ae9d0e10d2ee8e061bd3ff5495aab0ca48c4 /web/html/form/outbound.html | |
| parent | ae5ad505d04fa347eb96a0d2bfb54ff541c3b709 (diff) | |
finalmask
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/form/outbound.html')
| -rw-r--r-- | web/html/form/outbound.html | 500 |
1 files changed, 241 insertions, 259 deletions
diff --git a/web/html/form/outbound.html b/web/html/form/outbound.html index 21bc11fc..0deb8ee1 100644 --- a/web/html/form/outbound.html +++ b/web/html/form/outbound.html @@ -1,14 +1,11 @@ {{define "form/outbound"}} <!-- base --> -<a-tabs :active-key="outModal.activeKey" - :style="{ padding: '0', backgroundColor: 'transparent' }" +<a-tabs :active-key="outModal.activeKey" :style="{ padding: '0', backgroundColor: 'transparent' }" @change="(activeKey) => {outModal.toggleJson(activeKey == '2'); }"> <a-tab-pane key="1" tab="Form"> - <a-form :colon="false" :label-col="{ md: {span:8} }" - :wrapper-col="{ md: {span:14} }"> + <a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }"> <a-form-item label='{{ i18n "protocol" }}'> - <a-select v-model="outbound.protocol" - :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select v-model="outbound.protocol" :dropdown-class-name="themeSwitcher.currentTheme"> <a-select-option v-for="x,y in Protocols" :value="x">[[ y ]]</a-select-option> </a-select> @@ -25,8 +22,7 @@ <!-- freedom settings--> <template v-if="outbound.protocol === Protocols.Freedom"> <a-form-item label='Strategy'> - <a-select v-model="outbound.settings.domainStrategy" - :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select v-model="outbound.settings.domainStrategy" :dropdown-class-name="themeSwitcher.currentTheme"> <a-select-option v-for="s in OutboundDomainStrategies" :value="s">[[ s ]]</a-select-option> </a-select> @@ -41,8 +37,7 @@ </a-form-item> <template v-if="Object.keys(outbound.settings.fragment).length >0"> <a-form-item label='Packets'> - <a-select v-model="outbound.settings.fragment.packets" - :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select v-model="outbound.settings.fragment.packets" :dropdown-class-name="themeSwitcher.currentTheme"> <a-select-option v-for="s in ['1-3','tlshello']" :value="s">[[ s ]]</a-select-option> </a-select> @@ -51,12 +46,10 @@ <a-input v-model.trim="outbound.settings.fragment.length"></a-input> </a-form-item> <a-form-item label='Interval'> - <a-input - v-model.trim="outbound.settings.fragment.interval"></a-input> + <a-input v-model.trim="outbound.settings.fragment.interval"></a-input> </a-form-item> <a-form-item label='Max Split'> - <a-input - v-model.trim="outbound.settings.fragment.maxSplit"></a-input> + <a-input v-model.trim="outbound.settings.fragment.maxSplit"></a-input> </a-form-item> </template> @@ -70,13 +63,11 @@ <!-- Add Noise Button --> <template v-if="outbound.settings.noises.length > 0"> <a-form-item label="Noises"> - <a-button icon="plus" type="primary" size="small" - @click="outbound.settings.addNoise()"></a-button> + <a-button icon="plus" type="primary" size="small" @click="outbound.settings.addNoise()"></a-button> </a-form-item> <!-- Noise Configurations --> - <a-form v-for="(noise, index) in outbound.settings.noises" - :key="index" :colon="false" + <a-form v-for="(noise, index) in outbound.settings.noises" :key="index" :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }"> <a-divider :style="{ margin: '0' }"> Noise [[ index + 1 ]] <a-icon v-if="outbound.settings.noises.length > 1" type="delete" @@ -84,10 +75,8 @@ :style="{ color: 'rgb(255, 77, 79)', cursor: 'pointer' }"></a-icon> </a-divider> <a-form-item label='Type'> - <a-select v-model="noise.type" - :dropdown-class-name="themeSwitcher.currentTheme"> - <a-select-option v-for="s in ['rand','base64','str', 'hex']" - :value="s">[[ s ]]</a-select-option> + <a-select v-model="noise.type" :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select-option v-for="s in ['rand','base64','str', 'hex']" :value="s">[[ s ]]</a-select-option> </a-select> </a-form-item> <a-form-item label='Packet'> @@ -97,8 +86,7 @@ <a-input v-model.trim="noise.delay"></a-input> </a-form-item> <a-form-item label='Apply To'> - <a-select v-model="noise.applyTo" - :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select v-model="noise.applyTo" :dropdown-class-name="themeSwitcher.currentTheme"> <a-select-option v-for="s in ['ip','ipv4','ipv6']" :value="s">[[ s ]]</a-select-option> </a-select> @@ -110,8 +98,7 @@ <!-- blackhole settings --> <template v-if="outbound.protocol === Protocols.Blackhole"> <a-form-item label='Response Type'> - <a-select v-model="outbound.settings.type" - :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select v-model="outbound.settings.type" :dropdown-class-name="themeSwitcher.currentTheme"> <a-select-option v-for="s in ['', 'none','http']" :value="s">[[ s ]]</a-select-option> </a-select> @@ -121,21 +108,18 @@ <!-- dns settings --> <template v-if="outbound.protocol === Protocols.DNS"> <a-form-item label='{{ i18n "pages.inbounds.network" }}'> - <a-select v-model="outbound.settings.network" - :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select v-model="outbound.settings.network" :dropdown-class-name="themeSwitcher.currentTheme"> <a-select-option v-for="s in ['udp','tcp']" :value="s">[[ s ]]</a-select-option> </a-select> </a-form-item> <a-form-item label='non-IP queries'> - <a-select v-model="outbound.settings.nonIPQuery" - :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select v-model="outbound.settings.nonIPQuery" :dropdown-class-name="themeSwitcher.currentTheme"> <a-select-option v-for="s in ['reject','drop','skip']" :value="s">[[ s ]]</a-select-option> </a-select> </a-form-item> - <a-form-item v-if="outbound.settings.nonIPQuery === 'skip'" - label='Block Types'> + <a-form-item v-if="outbound.settings.nonIPQuery === 'skip'" label='Block Types'> <a-input v-model.number="outbound.settings.blockTypes"></a-input> </a-form-item> </template> @@ -172,19 +156,15 @@ <a-input disabled v-model="outbound.settings.pubKey"></a-input> </a-form-item> <a-form-item label='{{ i18n "pages.xray.wireguard.domainStrategy" }}'> - <a-select v-model="outbound.settings.domainStrategy" - :dropdown-class-name="themeSwitcher.currentTheme"> - <a-select-option v-for="wds in ['', ...WireguardDomainStrategy]" - :value="wds">[[ wds ]]</a-select-option> + <a-select v-model="outbound.settings.domainStrategy" :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select-option v-for="wds in ['', ...WireguardDomainStrategy]" :value="wds">[[ wds ]]</a-select-option> </a-select> </a-form-item> <a-form-item label='MTU'> - <a-input-number v-model.number="outbound.settings.mtu" - min="0"></a-input-number> + <a-input-number v-model.number="outbound.settings.mtu" min="0"></a-input-number> </a-form-item> <a-form-item label='Workers'> - <a-input-number v-model.number="outbound.settings.workers" - min="0"></a-input-number> + <a-input-number v-model.number="outbound.settings.workers" min="0"></a-input-number> </a-form-item> <a-form-item label='No Kernel Tun'> <a-switch v-model="outbound.settings.noKernelTun"></a-switch> @@ -200,14 +180,11 @@ <a-input v-model="outbound.settings.reserved"></a-input> </a-form-item> <a-form-item label="Peers"> - <a-button icon="plus" type="primary" size="small" - @click="outbound.settings.addPeer()"></a-button> + <a-button icon="plus" type="primary" size="small" @click="outbound.settings.addPeer()"></a-button> </a-form-item> - <a-form v-for="(peer, index) in outbound.settings.peers" :colon="false" - :label-col="{ md: {span:8} }" + <a-form v-for="(peer, index) in outbound.settings.peers" :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }"> - <a-divider :style="{ margin: '0' }"> Peer [[ index + 1 ]] <a-icon - v-if="outbound.settings.peers.length>1" + <a-divider :style="{ margin: '0' }"> Peer [[ index + 1 ]] <a-icon v-if="outbound.settings.peers.length>1" type="delete" @click="() => outbound.settings.delPeer(index)" :style="{ color: 'rgb(255, 77, 79)', cursor: 'pointer' }"></a-icon> </a-divider> @@ -223,21 +200,17 @@ <a-form-item> <template slot="label"> {{ i18n "pages.xray.wireguard.allowedIPs" }} - <a-button icon="plus" type="primary" size="small" - @click="peer.allowedIPs.push('')"></a-button> + <a-button icon="plus" type="primary" size="small" @click="peer.allowedIPs.push('')"></a-button> </template> - <template v-for="(aip, index) in peer.allowedIPs" - :style="{ marginBottom: '10px' }"> + <template v-for="(aip, index) in peer.allowedIPs" :style="{ marginBottom: '10px' }"> <a-input v-model.trim="peer.allowedIPs[index]"> - <a-button icon="minus" v-if="peer.allowedIPs.length>1" - slot="addonAfter" size="small" + <a-button icon="minus" v-if="peer.allowedIPs.length>1" slot="addonAfter" size="small" @click="peer.allowedIPs.splice(index, 1)"></a-button> </a-input> </template> </a-form-item> <a-form-item label='Keep Alive'> - <a-input-number v-model.number="peer.keepAlive" - :min="0"></a-input-number> + <a-input-number v-model.number="peer.keepAlive" :min="0"></a-input-number> </a-form-item> </a-form> </template> @@ -248,14 +221,12 @@ <a-input v-model.trim="outbound.settings.address"></a-input> </a-form-item> <a-form-item label='{{ i18n "pages.inbounds.port" }}'> - <a-input-number v-model.number="outbound.settings.port" :min="1" - :max="65532"></a-input-number> + <a-input-number v-model.number="outbound.settings.port" :min="1" :max="65532"></a-input-number> </a-form-item> </template> <!-- VLESS/VMess user settings --> - <template - v-if="[Protocols.VMess, Protocols.VLESS].includes(outbound.protocol)"> + <template v-if="[Protocols.VMess, Protocols.VLESS].includes(outbound.protocol)"> <a-form-item label='ID'> <a-input v-model.trim="outbound.settings.id"></a-input> </a-form-item> @@ -263,8 +234,7 @@ <!-- vmess settings --> <template v-if="outbound.protocol === Protocols.VMess"> <a-form-item label='Security'> - <a-select v-model="outbound.settings.security" - :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select v-model="outbound.settings.security" :dropdown-class-name="themeSwitcher.currentTheme"> <a-select-option v-for="key in USERS_SECURITY" :value="key">[[ key ]]</a-select-option> </a-select> @@ -279,8 +249,7 @@ </template> <template v-if="outbound.canEnableTlsFlow()"> <a-form-item label='Flow'> - <a-select v-model="outbound.settings.flow" - :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select v-model="outbound.settings.flow" :dropdown-class-name="themeSwitcher.currentTheme"> <a-select-option value selected>{{ i18n "none" }}</a-select-option> <a-select-option v-for="key in TLS_FLOW_CONTROL" :value="key">[[ @@ -291,35 +260,26 @@ <!-- XTLS Vision Advanced Settings --> <template v-if="outbound.canEnableVisionSeed()"> <a-form-item label="Vision Pre-Connect"> - <a-input-number v-model.number="outbound.settings.testpre" :min="0" - :max="10" :style="{ width: '100%' }" + <a-input-number v-model.number="outbound.settings.testpre" :min="0" :max="10" :style="{ width: '100%' }" placeholder="0"></a-input-number> </a-form-item> <a-form-item label="Vision Seed"> <a-row :gutter="8"> <a-col :span="6"> - <a-input-number v-model.number="outbound.settings.testseed[0]" - :min="0" :max="9999" - :style="{ width: '100%' }" placeholder="900" - addon-before="[0]"></a-input-number> + <a-input-number v-model.number="outbound.settings.testseed[0]" :min="0" :max="9999" + :style="{ width: '100%' }" placeholder="900" addon-before="[0]"></a-input-number> </a-col> <a-col :span="6"> - <a-input-number v-model.number="outbound.settings.testseed[1]" - :min="0" :max="9999" - :style="{ width: '100%' }" placeholder="500" - addon-before="[1]"></a-input-number> + <a-input-number v-model.number="outbound.settings.testseed[1]" :min="0" :max="9999" + :style="{ width: '100%' }" placeholder="500" addon-before="[1]"></a-input-number> </a-col> <a-col :span="6"> - <a-input-number v-model.number="outbound.settings.testseed[2]" - :min="0" :max="9999" - :style="{ width: '100%' }" placeholder="900" - addon-before="[2]"></a-input-number> + <a-input-number v-model.number="outbound.settings.testseed[2]" :min="0" :max="9999" + :style="{ width: '100%' }" placeholder="900" addon-before="[2]"></a-input-number> </a-col> <a-col :span="6"> - <a-input-number v-model.number="outbound.settings.testseed[3]" - :min="0" :max="9999" - :style="{ width: '100%' }" placeholder="256" - addon-before="[3]"></a-input-number> + <a-input-number v-model.number="outbound.settings.testseed[3]" :min="0" :max="9999" + :style="{ width: '100%' }" placeholder="256" addon-before="[3]"></a-input-number> </a-col> </a-row> </a-form-item> @@ -339,8 +299,7 @@ </template> <!-- trojan/shadowsocks --> - <template - v-if="[Protocols.Trojan, Protocols.Shadowsocks].includes(outbound.protocol)"> + <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> @@ -349,10 +308,8 @@ <!-- 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 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> </a-form-item> @@ -360,8 +317,7 @@ <a-switch v-model="outbound.settings.uot"></a-switch> </a-form-item> <a-form-item label='UoTVersion'> - <a-input-number v-model.number="outbound.settings.UoTVersion" - :min="1" :max="2"></a-input-number> + <a-input-number v-model.number="outbound.settings.UoTVersion" :min="1" :max="2"></a-input-number> </a-form-item> </template> </template> @@ -369,16 +325,14 @@ <!-- hysteria settings --> <template v-if="outbound.protocol === Protocols.Hysteria"> <a-form-item label='Version'> - <a-input-number v-model.number="outbound.settings.version" :min="2" - :max="2" disabled></a-input-number> + <a-input-number v-model.number="outbound.settings.version" :min="2" :max="2" disabled></a-input-number> </a-form-item> </template> <!-- stream settings --> <template v-if="outbound.canEnableStream()"> <a-form-item label='{{ i18n "transmission" }}'> - <a-select v-model="outbound.stream.network" - @change="streamNetworkChange" + <a-select v-model="outbound.stream.network" @change="streamNetworkChange" :dropdown-class-name="themeSwitcher.currentTheme"> <a-select-option value="tcp">TCP (RAW)</a-select-option> <a-select-option value="kcp">mKCP</a-select-option> @@ -408,31 +362,25 @@ <!-- kcp --> <template v-if="outbound.stream.network === 'kcp'"> <a-form-item label='MTU'> - <a-input-number v-model.number="outbound.stream.kcp.mtu" - min="0"></a-input-number> + <a-input-number v-model.number="outbound.stream.kcp.mtu" min="0"></a-input-number> </a-form-item> <a-form-item label='TTI (ms)'> - <a-input-number v-model.number="outbound.stream.kcp.tti" - min="0"></a-input-number> + <a-input-number v-model.number="outbound.stream.kcp.tti" min="0"></a-input-number> </a-form-item> <a-form-item label='Uplink (MB/s)'> - <a-input-number v-model.number="outbound.stream.kcp.upCap" - min="0"></a-input-number> + <a-input-number v-model.number="outbound.stream.kcp.upCap" min="0"></a-input-number> </a-form-item> <a-form-item label='Downlink (MB/s)'> - <a-input-number v-model.number="outbound.stream.kcp.downCap" - min="0"></a-input-number> + <a-input-number v-model.number="outbound.stream.kcp.downCap" min="0"></a-input-number> </a-form-item> <a-form-item label='Congestion'> <a-switch v-model="outbound.stream.kcp.congestion"></a-switch> </a-form-item> <a-form-item label='Read Buffer (MB)'> - <a-input-number v-model.number="outbound.stream.kcp.readBuffer" - min="0"></a-input-number> + <a-input-number v-model.number="outbound.stream.kcp.readBuffer" min="0"></a-input-number> </a-form-item> <a-form-item label='Write Buffer (MB)'> - <a-input-number v-model.number="outbound.stream.kcp.writeBuffer" - min="0"></a-input-number> + <a-input-number v-model.number="outbound.stream.kcp.writeBuffer" min="0"></a-input-number> </a-form-item> </template> @@ -445,8 +393,7 @@ <a-input v-model.trim="outbound.stream.ws.path"></a-input> </a-form-item> <a-form-item label='Heartbeat Period'> - <a-input-number v-model.number="outbound.stream.ws.heartbeatPeriod" - :min="0"></a-input-number> + <a-input-number v-model.number="outbound.stream.ws.heartbeatPeriod" :min="0"></a-input-number> </a-form-item> </template> @@ -482,8 +429,7 @@ <a-input v-model.trim="outbound.stream.xhttp.path"></a-input> </a-form-item> <a-form-item label='Mode'> - <a-select v-model="outbound.stream.xhttp.mode" - :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select v-model="outbound.stream.xhttp.mode" :dropdown-class-name="themeSwitcher.currentTheme"> <a-select-option v-for="key in MODE_OPTION" :value="key">[[ key ]]</a-select-option> </a-select> @@ -492,36 +438,26 @@ v-if="outbound.stream.xhttp.mode === 'stream-up' || outbound.stream.xhttp.mode === 'stream-one'"> <a-switch v-model="outbound.stream.xhttp.noGRPCHeader"></a-switch> </a-form-item> - <a-form-item label="Min Upload Interval (Ms)" - v-if="outbound.stream.xhttp.mode === 'packet-up'"> - <a-input - v-model.trim="outbound.stream.xhttp.scMinPostsIntervalMs"></a-input> + <a-form-item label="Min Upload Interval (Ms)" v-if="outbound.stream.xhttp.mode === 'packet-up'"> + <a-input v-model.trim="outbound.stream.xhttp.scMinPostsIntervalMs"></a-input> </a-form-item> - <a-form-item label="Max Concurrency" - v-if="!outbound.stream.xhttp.xmux.maxConnections"> - <a-input - v-model="outbound.stream.xhttp.xmux.maxConcurrency"></a-input> + <a-form-item label="Max Concurrency" v-if="!outbound.stream.xhttp.xmux.maxConnections"> + <a-input v-model="outbound.stream.xhttp.xmux.maxConcurrency"></a-input> </a-form-item> - <a-form-item label="Max Connections" - v-if="!outbound.stream.xhttp.xmux.maxConcurrency"> - <a-input - v-model="outbound.stream.xhttp.xmux.maxConnections"></a-input> + <a-form-item label="Max Connections" v-if="!outbound.stream.xhttp.xmux.maxConcurrency"> + <a-input v-model="outbound.stream.xhttp.xmux.maxConnections"></a-input> </a-form-item> <a-form-item label="Max Reuse Times"> - <a-input - v-model="outbound.stream.xhttp.xmux.cMaxReuseTimes"></a-input> + <a-input v-model="outbound.stream.xhttp.xmux.cMaxReuseTimes"></a-input> </a-form-item> <a-form-item label="Max Request Times"> - <a-input - v-model="outbound.stream.xhttp.xmux.hMaxRequestTimes"></a-input> + <a-input v-model="outbound.stream.xhttp.xmux.hMaxRequestTimes"></a-input> </a-form-item> <a-form-item label="Max Reusable Secs"> - <a-input - v-model="outbound.stream.xhttp.xmux.hMaxReusableSecs"></a-input> + <a-input v-model="outbound.stream.xhttp.xmux.hMaxReusableSecs"></a-input> </a-form-item> <a-form-item label='Keep Alive Period'> - <a-input-number - v-model.number="outbound.stream.xhttp.xmux.hKeepAlivePeriod"></a-input-number> + <a-input-number v-model.number="outbound.stream.xhttp.xmux.hKeepAlivePeriod"></a-input-number> </a-form-item> </template> @@ -531,137 +467,210 @@ <a-input v-model.trim="outbound.stream.hysteria.auth"></a-input> </a-form-item> <a-form-item label='Congestion'> - <a-select v-model="outbound.stream.hysteria.congestion" - :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select v-model="outbound.stream.hysteria.congestion" :dropdown-class-name="themeSwitcher.currentTheme"> <a-select-option value>BBR (Auto)</a-select-option> <a-select-option value="brutal">Brutal</a-select-option> </a-select> </a-form-item> <a-form-item label='Upload Speed'> - <a-input v-model.trim="outbound.stream.hysteria.up" - placeholder="0 (BBR mode), e.g., 100 mbps"></a-input> + <a-input v-model.trim="outbound.stream.hysteria.up" placeholder="0 (BBR mode), e.g., 100 mbps"></a-input> </a-form-item> <a-form-item label='Download Speed'> - <a-input v-model.trim="outbound.stream.hysteria.down" - placeholder="0 (BBR mode), e.g., 100 mbps"></a-input> + <a-input v-model.trim="outbound.stream.hysteria.down" placeholder="0 (BBR mode), e.g., 100 mbps"></a-input> </a-form-item> <a-form-item label='UDP Hop Port'> <a-input v-model.trim="outbound.stream.hysteria.udphopPort" placeholder="e.g., 1145-1919 or 11,13,15-17"></a-input> </a-form-item> - <a-form-item label='UDP Hop Interval Min (s)' - v-if="outbound.stream.hysteria.udphopPort"> - <a-input-number - v-model.number="outbound.stream.hysteria.udphopIntervalMin" - :min="5"></a-input-number> + <a-form-item label='UDP Hop Interval Min (s)' v-if="outbound.stream.hysteria.udphopPort"> + <a-input-number v-model.number="outbound.stream.hysteria.udphopIntervalMin" :min="5"></a-input-number> </a-form-item> - <a-form-item label='UDP Hop Interval Max (s)' - v-if="outbound.stream.hysteria.udphopPort"> - <a-input-number - v-model.number="outbound.stream.hysteria.udphopIntervalMax" - :min="5"></a-input-number> + <a-form-item label='UDP Hop Interval Max (s)' v-if="outbound.stream.hysteria.udphopPort"> + <a-input-number v-model.number="outbound.stream.hysteria.udphopIntervalMax" :min="5"></a-input-number> </a-form-item> <a-form-item label='Init Stream Receive'> - <a-input-number - v-model.number="outbound.stream.hysteria.initStreamReceiveWindow"></a-input-number> + <a-input-number v-model.number="outbound.stream.hysteria.initStreamReceiveWindow"></a-input-number> </a-form-item> <a-form-item label='Max Stream Receive'> - <a-input-number - v-model.number="outbound.stream.hysteria.maxStreamReceiveWindow"></a-input-number> + <a-input-number v-model.number="outbound.stream.hysteria.maxStreamReceiveWindow"></a-input-number> </a-form-item> <a-form-item label='Init Connection Receive'> - <a-input-number - v-model.number="outbound.stream.hysteria.initConnectionReceiveWindow"></a-input-number> + <a-input-number v-model.number="outbound.stream.hysteria.initConnectionReceiveWindow"></a-input-number> </a-form-item> <a-form-item label='Max Connection Receive'> - <a-input-number - v-model.number="outbound.stream.hysteria.maxConnectionReceiveWindow"></a-input-number> + <a-input-number v-model.number="outbound.stream.hysteria.maxConnectionReceiveWindow"></a-input-number> </a-form-item> <a-form-item label='Max Idle Timeout (s)'> - <a-input-number - v-model.number="outbound.stream.hysteria.maxIdleTimeout" :min="4" + <a-input-number v-model.number="outbound.stream.hysteria.maxIdleTimeout" :min="4" :max="120"></a-input-number> </a-form-item> <a-form-item label='Keep Alive Period (s)'> - <a-input-number - v-model.number="outbound.stream.hysteria.keepAlivePeriod" :min="0" + <a-input-number v-model.number="outbound.stream.hysteria.keepAlivePeriod" :min="0" :max="60"></a-input-number> </a-form-item> <a-form-item label='Disable Path MTU'> - <a-switch - v-model="outbound.stream.hysteria.disablePathMTUDiscovery"></a-switch> + <a-switch v-model="outbound.stream.hysteria.disablePathMTUDiscovery"></a-switch> </a-form-item> </template> </template> <!-- finalmask settings --> <template v-if="outbound.canEnableStream()"> - <a-form-item label="UDP Masks"> + <a-form-item label="UDP Masks" + v-if="outbound.stream.network === 'kcp' || outbound.protocol === Protocols.Hysteria"> <a-button icon="plus" type="primary" size="small" - @click="outbound.stream.addUdpMask(outbound.protocol === Protocols.Hysteria ? 'salamander' : (outbound.stream.network === 'kcp' ? 'mkcp-aes128gcm' : 'xdns'))"></a-button> + @click="outbound.stream.addUdpMask(outbound.protocol === Protocols.Hysteria ? 'salamander' : 'mkcp-aes128gcm')"></a-button> </a-form-item> - <template - v-if="outbound.stream.finalmask.udp && outbound.stream.finalmask.udp.length > 0"> - <a-form v-for="(mask, index) in outbound.stream.finalmask.udp" - :key="index" :colon="false" + <template v-if="outbound.stream.finalmask.udp && outbound.stream.finalmask.udp.length > 0"> + <a-form v-for="(mask, index) in outbound.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="() => outbound.stream.delUdpMask(index)" + <a-icon type="delete" @click="() => outbound.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, {}); if(outbound.stream.network === 'kcp') { outbound.stream.kcp.mtu = type === 'xdns' ? 900 : 1350; } }" :dropdown-class-name="themeSwitcher.currentTheme"> - <!-- Salamander for Hysteria2 only --> - <a-select-option v-if="outbound.protocol === Protocols.Hysteria" - value="salamander"> + <a-select-option v-if="outbound.protocol === Protocols.Hysteria" value="salamander"> Salamander (Hysteria2)</a-select-option> - <!-- 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 v-if="outbound.stream.network === 'kcp'" - value="header-dns"> - Header DNS</a-select-option> - <a-select-option v-if="outbound.stream.network === 'kcp'" - value="header-dtls"> - Header DTLS 1.2</a-select-option> - <a-select-option v-if="outbound.stream.network === 'kcp'" - value="header-srtp"> - Header SRTP</a-select-option> - <a-select-option v-if="outbound.stream.network === 'kcp'" - value="header-utp"> - Header uTP</a-select-option> - <a-select-option v-if="outbound.stream.network === 'kcp'" - value="header-wechat"> - Header WeChat Video</a-select-option> - <a-select-option v-if="outbound.stream.network === 'kcp'" - value="header-wireguard"> - Header WireGuard</a-select-option> - <a-select-option v-if="outbound.stream.network === 'kcp'" - value="mkcp-original"> - mKCP Original</a-select-option> - <!-- xDNS for TCP/WS/HTTPUpgrade/XHTTP/KCP --> - <a-select-option - v-if="['tcp', 'ws', 'httpupgrade', 'xhttp', 'kcp'].includes(outbound.stream.network)" - value="xdns"> - xDNS (Experimental)</a-select-option> + <template v-else> + <a-select-option value="mkcp-aes128gcm">mKCP AES-128-GCM</a-select-option> + <a-select-option value="header-dns">Header DNS</a-select-option> + <a-select-option value="header-dtls">Header DTLS 1.2</a-select-option> + <a-select-option value="header-srtp">Header SRTP</a-select-option> + <a-select-option value="header-utp">Header uTP</a-select-option> + <a-select-option value="header-wechat">Header WeChat Video</a-select-option> + <a-select-option value="header-wireguard">Header WireGuard</a-select-option> + <a-select-option value="mkcp-original">mKCP Original</a-select-option> + <a-select-option value="xdns">xDNS</a-select-option> + <a-select-option value="xicmp">xICMP</a-select-option> + <a-select-option value="header-custom">Header Custom</a-select-option> + <a-select-option value="noise">Noise</a-select-option> + <a-select-option value="sudoku">Sudoku</a-select-option> + </template> </a-select> </a-form-item> - <!-- Settings for password-based masks --> - <a-form-item label='Password' - v-if="['salamander', 'mkcp-aes128gcm'].includes(mask.type)"> - <a-input v-model.trim="mask.settings.password" - placeholder="Obfuscation password"></a-input> + <a-form-item label='Password' v-if="['salamander', 'mkcp-aes128gcm', 'sudoku'].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 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> + <template v-if="mask.type === 'header-custom'"> + <a-form-item label='Client'> + <a-icon type="plus" type="primary" size="small" + @click="mask.settings.client.push({rand: 0, randRange: '0-255', type: 'array', packet: []})" /> + </a-form-item> + <template v-for="(c, index) in mask.settings.client" :key="index"> + <a-divider :style="{ margin: '0' }"> Client [[ index + 1 ]] + <a-icon type="delete" @click="() => mask.settings.client.splice(index, 1)" + :style="{ color: 'rgb(255, 77, 79)', cursor: 'pointer' }"></a-icon> + </a-divider> + <a-form-item label='Rand'> + <a-input-number v-model.number="c.rand" :min="0"></a-input-number> + </a-form-item> + <a-form-item label='Rand Range'> + <a-input v-model.trim="c.randRange" placeholder="0-255"></a-input> + </a-form-item> + <a-form-item label='Type'> + <a-select v-model="c.type" :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select-option value="array">Array</a-select-option> + <a-select-option value="str">String</a-select-option> + <a-select-option value="hex">Hex</a-select-option> + <a-select-option value="base64">Base64</a-select-option> + </a-select> + </a-form-item> + <a-form-item label='Packet'> + <a-input v-model.trim="c.packet" placeholder="binary data" /> + </a-form-item> + </template> + <a-divider :style="{ margin: '0' }"></a-divider> + <a-form-item label='Server'> + <a-icon type="plus" type="primary" size="small" + @click="mask.settings.server.push({rand: 0, randRange: '0-255', type: 'array', packet: []})" /> + </a-form-item> + <template v-for="(s, index) in mask.settings.server" :key="index"> + <a-divider :style="{ margin: '0' }"> Server [[ index + 1 ]] + <a-icon type="delete" @click="() => mask.settings.server.splice(index, 1)" + :style="{ color: 'rgb(255, 77, 79)', cursor: 'pointer' }"></a-icon> + </a-divider> + <a-form-item label='Rand'> + <a-input-number v-model.number="s.rand" :min="0"></a-input-number> + </a-form-item> + <a-form-item label='Rand Range'> + <a-input v-model.trim="s.randRange" placeholder="0-255"></a-input> + </a-form-item> + <a-form-item label='Type'> + <a-select v-model="s.type" :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select-option value="array">Array</a-select-option> + <a-select-option value="str">String</a-select-option> + <a-select-option value="hex">Hex</a-select-option> + <a-select-option value="base64">Base64</a-select-option> + </a-select> + </a-form-item> + <a-form-item label='Packet'> + <a-input v-model.trim="s.packet" placeholder="binary data" /> + </a-form-item> + </template> + </template> + <template v-if="mask.type === 'sudoku'"> + <a-form-item label='ASCII'> + <a-input v-model.trim="mask.settings.ascii" placeholder="ASCII"></a-input> + </a-form-item> + <a-form-item label='Custom Table'> + <a-input v-model.trim="mask.settings.customTable" placeholder="Custom Table"></a-input> + </a-form-item> + <a-form-item label='Custom Tables'> + <a-input v-model.trim="mask.settings.customTables" placeholder="Custom Tables"></a-input> + </a-form-item> + <a-form-item label='Padding Min'> + <a-input-number v-model.number="mask.settings.paddingMin" :min="0"></a-input-number> + </a-form-item> + </template> + <template v-if="mask.type === 'noise'"> + <a-form-item label='Reset'> + <a-input-number v-model.number="mask.settings.reset" :min="0" />
|
