mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-03-13 11:53:03 +00:00
Adjust KCP MTU when selecting xDNS mask
This commit is contained in:
parent
5740996436
commit
34d8885075
2 changed files with 6 additions and 6 deletions
|
|
@ -612,7 +612,7 @@
|
||||||
</a-divider>
|
</a-divider>
|
||||||
<a-form-item label='Type'>
|
<a-form-item label='Type'>
|
||||||
<a-select v-model="mask.type"
|
<a-select v-model="mask.type"
|
||||||
@change="(type) => mask.settings = mask._getDefaultSettings(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">
|
:dropdown-class-name="themeSwitcher.currentTheme">
|
||||||
<!-- Salamander for Hysteria2 only -->
|
<!-- Salamander for Hysteria2 only -->
|
||||||
<a-select-option v-if="outbound.protocol === Protocols.Hysteria"
|
<a-select-option v-if="outbound.protocol === Protocols.Hysteria"
|
||||||
|
|
@ -643,9 +643,9 @@
|
||||||
<a-select-option v-if="outbound.stream.network === 'kcp'"
|
<a-select-option v-if="outbound.stream.network === 'kcp'"
|
||||||
value="mkcp-original">
|
value="mkcp-original">
|
||||||
mKCP Original</a-select-option>
|
mKCP Original</a-select-option>
|
||||||
<!-- xDNS for TCP/WS/HTTPUpgrade/XHTTP -->
|
<!-- xDNS for TCP/WS/HTTPUpgrade/XHTTP/KCP -->
|
||||||
<a-select-option
|
<a-select-option
|
||||||
v-if="['tcp', 'ws', 'httpupgrade', 'xhttp'].includes(outbound.stream.network)"
|
v-if="['tcp', 'ws', 'httpupgrade', 'xhttp', 'kcp'].includes(outbound.stream.network)"
|
||||||
value="xdns">
|
value="xdns">
|
||||||
xDNS (Experimental)</a-select-option>
|
xDNS (Experimental)</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
</a-divider>
|
</a-divider>
|
||||||
<a-form-item label='Type'>
|
<a-form-item label='Type'>
|
||||||
<a-select v-model="mask.type"
|
<a-select v-model="mask.type"
|
||||||
@change="(type) => mask.settings = mask._getDefaultSettings(type, {})"
|
@change="(type) => { mask.settings = mask._getDefaultSettings(type, {}); if(inbound.stream.network === 'kcp') { inbound.stream.kcp.mtu = type === 'xdns' ? 900 : 1350; } }"
|
||||||
:dropdown-class-name="themeSwitcher.currentTheme">
|
:dropdown-class-name="themeSwitcher.currentTheme">
|
||||||
<!-- mKCP-specific masks -->
|
<!-- mKCP-specific masks -->
|
||||||
<a-select-option v-if="inbound.stream.network === 'kcp'"
|
<a-select-option v-if="inbound.stream.network === 'kcp'"
|
||||||
|
|
@ -48,9 +48,9 @@
|
||||||
<a-select-option v-if="inbound.stream.network === 'kcp'"
|
<a-select-option v-if="inbound.stream.network === 'kcp'"
|
||||||
value="xicmp">
|
value="xicmp">
|
||||||
xICMP (Experimental)</a-select-option>
|
xICMP (Experimental)</a-select-option>
|
||||||
<!-- xDNS for TCP/WS/HTTPUpgrade/XHTTP -->
|
<!-- xDNS for TCP/WS/HTTPUpgrade/XHTTP/KCP -->
|
||||||
<a-select-option
|
<a-select-option
|
||||||
v-if="['tcp', 'ws', 'httpupgrade', 'xhttp'].includes(inbound.stream.network)"
|
v-if="['tcp', 'ws', 'httpupgrade', 'xhttp', 'kcp'].includes(inbound.stream.network)"
|
||||||
value="xdns">
|
value="xdns">
|
||||||
xDNS (Experimental)</a-select-option>
|
xDNS (Experimental)</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue