Skip to content

Commit 4c5dfd5

Browse files
authored
Update outbound.html
1 parent e3ea4a3 commit 4c5dfd5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎web/html/form/outbound.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@
612612
</a-divider>
613613
<a-form-item label='Type'>
614614
<a-select v-model="mask.type"
615-
@change="(type) => mask.settings = mask._getDefaultSettings(type, {})"
615+
@change="(type) => { mask.settings = mask._getDefaultSettings(type, {}); if(outbound.stream.network === 'kcp') { outbound.stream.kcp.mtu = type === 'xdns' ? 900 : 1350; } }"
616616
:dropdown-class-name="themeSwitcher.currentTheme">
617617
<!-- Salamander for Hysteria2 only -->
618618
<a-select-option v-if="outbound.protocol === Protocols.Hysteria"
@@ -643,9 +643,9 @@
643643
<a-select-option v-if="outbound.stream.network === 'kcp'"
644644
value="mkcp-original">
645645
mKCP Original</a-select-option>
646-
<!-- xDNS for TCP/WS/HTTPUpgrade/XHTTP -->
646+
<!-- xDNS for TCP/WS/HTTPUpgrade/XHTTP/KCP -->
647647
<a-select-option
648-
v-if="['tcp', 'ws', 'httpupgrade', 'xhttp'].includes(outbound.stream.network)"
648+
v-if="['tcp', 'ws', 'httpupgrade', 'xhttp', 'kcp'].includes(outbound.stream.network)"
649649
value="xdns">
650650
xDNS (Experimental)</a-select-option>
651651
</a-select>

0 commit comments

Comments
 (0)