From d23a7f81ef4ec0781574a0f2776effeefe256673 Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Fri, 13 Sep 2024 09:21:37 +0200 Subject: [PATCH] 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. --- web/assets/js/model/outbound.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index dc22a5b1..37dd9703 100644 --- a/web/assets/js/model/outbound.js +++ b/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;