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.
This commit is contained in:
mhsanaei 2024-09-13 09:21:37 +02:00
parent 2e363445fc
commit d23a7f81ef

View file

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