Browse Source

mtu to 1250

MHSanaei 5 days ago
parent
commit
c117b8b272
2 changed files with 4 additions and 4 deletions
  1. 2 2
      web/assets/js/model/inbound.js
  2. 2 2
      web/assets/js/model/outbound.js

+ 2 - 2
web/assets/js/model/inbound.js

@@ -317,7 +317,7 @@ TcpStreamSettings.TcpResponse = class extends XrayCommonClass {
 
 
 class KcpStreamSettings extends XrayCommonClass {
 class KcpStreamSettings extends XrayCommonClass {
     constructor(
     constructor(
-        mtu = 1350,
+        mtu = 1250,
         tti = 50,
         tti = 50,
         uplinkCapacity = 5,
         uplinkCapacity = 5,
         downlinkCapacity = 20,
         downlinkCapacity = 20,
@@ -2506,7 +2506,7 @@ Inbound.HttpSettings.HttpAccount = class extends XrayCommonClass {
 Inbound.WireguardSettings = class extends XrayCommonClass {
 Inbound.WireguardSettings = class extends XrayCommonClass {
     constructor(
     constructor(
         protocol,
         protocol,
-        mtu = 1420,
+        mtu = 1250,
         secretKey = Wireguard.generateKeypair().privateKey,
         secretKey = Wireguard.generateKeypair().privateKey,
         peers = [new Inbound.WireguardSettings.Peer()],
         peers = [new Inbound.WireguardSettings.Peer()],
         noKernelTun = false
         noKernelTun = false

+ 2 - 2
web/assets/js/model/outbound.js

@@ -164,7 +164,7 @@ class TcpStreamSettings extends CommonClass {
 
 
 class KcpStreamSettings extends CommonClass {
 class KcpStreamSettings extends CommonClass {
     constructor(
     constructor(
-        mtu = 1350,
+        mtu = 1250,
         tti = 50,
         tti = 50,
         uplinkCapacity = 5,
         uplinkCapacity = 5,
         downlinkCapacity = 20,
         downlinkCapacity = 20,
@@ -1233,7 +1233,7 @@ Outbound.HttpSettings = class extends CommonClass {
 
 
 Outbound.WireguardSettings = class extends CommonClass {
 Outbound.WireguardSettings = class extends CommonClass {
     constructor(
     constructor(
-        mtu = 1420,
+        mtu = 1250,
         secretKey = '',
         secretKey = '',
         address = [''],
         address = [''],
         workers = 2,
         workers = 2,