Преглед изворни кода

freedom - default value for timeout

I've seen many users make the mistake of not setting the timeout value in Xray, which causes errors. Then, they mistakenly assume that 3x-ui has a bug.
mhsanaei пре 1 месец
родитељ
комит
d23a7f81ef
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      web/assets/js/model/outbound.js

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

@@ -851,7 +851,7 @@ Outbound.Settings = class extends CommonClass {
 Outbound.FreedomSettings = class extends CommonClass {
     constructor(
         domainStrategy = '',
-        timeout = '',
+        timeout = 10,
         redirect = '',
         fragment = {},
         noise = {}
@@ -901,7 +901,7 @@ Outbound.FreedomSettings.Fragment = class extends CommonClass {
     }
 };
 Outbound.FreedomSettings.Noise = class extends CommonClass {
-    constructor(packet = '', delay = '') {
+    constructor(packet = 'rand:100-200', delay = '10-20') {
         super();
         this.packet = packet;
         this.delay = delay;