freedom - default settings

This commit is contained in:
mhsanaei 2024-10-17 10:36:05 +02:00
parent 514c4909a4
commit 2950ce0c17
No known key found for this signature in database
GPG key ID: 4DACC0663B5986F5
5 changed files with 21 additions and 11 deletions

View file

@ -47,7 +47,9 @@
"tag": "direct", "tag": "direct",
"protocol": "freedom", "protocol": "freedom",
"settings": { "settings": {
"domainStrategy": "UseIP" "domainStrategy": "UseIP",
"redirect": "",
"noises": []
} }
}, },
{ {

View file

@ -140,9 +140,9 @@ class DBInbound {
return false; return false;
} }
} }
genInboundLinks(remarkModel) { genInboundLinks(remarkModel) {
const inbound = this.toInbound(); const inbound = this.toInbound();
return inbound.genInboundLinks(this.remark,remarkModel); return inbound.genInboundLinks(this.remark, remarkModel);
} }
} }

View file

@ -890,7 +890,11 @@ Outbound.FreedomSettings = class extends CommonClass {
}; };
Outbound.FreedomSettings.Fragment = class extends CommonClass { Outbound.FreedomSettings.Fragment = class extends CommonClass {
constructor(packets = '1-3', length = '', interval = '') { constructor(
packets = '1-3',
length = '',
interval = ''
) {
super(); super();
this.packets = packets; this.packets = packets;
this.length = length; this.length = length;

View file

@ -529,7 +529,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
scMinPostsIntervalMs = "10-50", scMinPostsIntervalMs = "10-50",
noSSEHeader = false, noSSEHeader = false,
xPaddingBytes = "100-1000", xPaddingBytes = "100-1000",
xmux = { xmux = {
maxConcurrency: 0, maxConcurrency: 0,
maxConnections: 0, maxConnections: 0,
cMaxReuseTimes: 0, cMaxReuseTimes: 0,
@ -545,7 +545,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
this.scMinPostsIntervalMs = scMinPostsIntervalMs; this.scMinPostsIntervalMs = scMinPostsIntervalMs;
this.noSSEHeader = noSSEHeader; this.noSSEHeader = noSSEHeader;
this.xPaddingBytes = xPaddingBytes; this.xPaddingBytes = xPaddingBytes;
this.xmux = xmux; this.xmux = xmux;
} }
addHeader(name, value) { addHeader(name, value) {
@ -909,7 +909,7 @@ class RealityStreamSettings extends XrayCommonClass {
this.minClient = minClient; this.minClient = minClient;
this.maxClient = maxClient; this.maxClient = maxClient;
this.maxTimediff = maxTimediff; this.maxTimediff = maxTimediff;
this.shortIds = Array.isArray(shortIds) ? shortIds.join(",") : shortIds; this.shortIds = Array.isArray(shortIds) ? shortIds.join(",") : shortIds;
this.settings = settings; this.settings = settings;
} }
@ -920,7 +920,9 @@ class RealityStreamSettings extends XrayCommonClass {
json.settings.publicKey, json.settings.publicKey,
json.settings.fingerprint, json.settings.fingerprint,
json.settings.serverName, json.settings.serverName,
json.settings.spiderX);} json.settings.spiderX
);
}
return new RealityStreamSettings( return new RealityStreamSettings(
json.show, json.show,
json.xver, json.xver,
@ -2598,7 +2600,7 @@ Inbound.SocksSettings.SocksAccount = class extends XrayCommonClass {
Inbound.HttpSettings = class extends Inbound.Settings { Inbound.HttpSettings = class extends Inbound.Settings {
constructor( constructor(
protocol, protocol,
accounts = [new Inbound.HttpSettings.HttpAccount()], accounts = [new Inbound.HttpSettings.HttpAccount()],
allowTransparent = false, allowTransparent = false,
) { ) {

View file

@ -30,7 +30,9 @@
"tag": "direct", "tag": "direct",
"protocol": "freedom", "protocol": "freedom",
"settings": { "settings": {
"domainStrategy": "UseIP" "domainStrategy": "UseIP",
"redirect": "",
"noises": []
} }
}, },
{ {