Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2025-08-14 19:38:56 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2025-08-14 19:38:56 +0300
commit9b51e9a5c5c087139454fca56ae5f375f40a017c (patch)
tree64cb68e72bd4908a30ae0ea7ccaa11f4c4005a54 /web/assets/js
parent6879a8fbcba33dc56afa0ef0a172d506e1f874f3 (diff)
Freedom: Add maxSplit fragment option; Add applyTo noises option
Diffstat (limited to 'web/assets/js')
-rw-r--r--web/assets/js/model/outbound.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js
index a42c400d..ce110a73 100644
--- a/web/assets/js/model/outbound.js
+++ b/web/assets/js/model/outbound.js
@@ -919,12 +919,14 @@ Outbound.FreedomSettings.Fragment = class extends CommonClass {
constructor(
packets = '1-3',
length = '',
- interval = ''
+ interval = '',
+ maxSplit = ''
) {
super();
this.packets = packets;
this.length = length;
this.interval = interval;
+ this.maxSplit = maxSplit;
}
static fromJson(json = {}) {
@@ -932,6 +934,7 @@ Outbound.FreedomSettings.Fragment = class extends CommonClass {
json.packets,
json.length,
json.interval,
+ json.maxSplit
);
}
};
@@ -940,12 +943,14 @@ Outbound.FreedomSettings.Noise = class extends CommonClass {
constructor(
type = 'rand',
packet = '10-20',
- delay = '10-16'
+ delay = '10-16',
+ applyTo = 'ip'
) {
super();
this.type = type;
this.packet = packet;
this.delay = delay;
+ this.applyTo = applyTo;
}
static fromJson(json = {}) {
@@ -953,6 +958,7 @@ Outbound.FreedomSettings.Noise = class extends CommonClass {
json.type,
json.packet,
json.delay,
+ json.applyTo
);
}
@@ -961,6 +967,7 @@ Outbound.FreedomSettings.Noise = class extends CommonClass {
type: this.type,
packet: this.packet,
delay: this.delay,
+ applyTo: this.applyTo
};
}
};