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/outbound.html')
-rw-r--r--web/html/form/outbound.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/html/form/outbound.html b/web/html/form/outbound.html
index a2de920a..21bc11fc 100644
--- a/web/html/form/outbound.html
+++ b/web/html/form/outbound.html
@@ -612,7 +612,7 @@
</a-divider>
<a-form-item label='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">
<!-- Salamander for Hysteria2 only -->
<a-select-option v-if="outbound.protocol === Protocols.Hysteria"
@@ -643,9 +643,9 @@
<a-select-option v-if="outbound.stream.network === 'kcp'"
value="mkcp-original">
mKCP Original</a-select-option>
- <!-- xDNS for TCP/WS/HTTPUpgrade/XHTTP -->
+ <!-- xDNS for TCP/WS/HTTPUpgrade/XHTTP/KCP -->
<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">
xDNS (Experimental)</a-select-option>
</a-select>