Skip to content

Commit

Permalink
freedom - default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
MHSanaei committed Oct 17, 2024
1 parent 514c490 commit 2950ce0
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 11 deletions.
4 changes: 3 additions & 1 deletion sub/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
"tag": "direct",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIP"
"domainStrategy": "UseIP",
"redirect": "",
"noises": []
}
},
{
Expand Down
6 changes: 3 additions & 3 deletions web/assets/js/model/dbinbound.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ class DBInbound {
return false;
}
}
genInboundLinks(remarkModel) {

genInboundLinks(remarkModel) {
const inbound = this.toInbound();
return inbound.genInboundLinks(this.remark,remarkModel);
return inbound.genInboundLinks(this.remark, remarkModel);
}
}
6 changes: 5 additions & 1 deletion web/assets/js/model/outbound.js
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,11 @@ Outbound.FreedomSettings = class extends CommonClass {
};

Outbound.FreedomSettings.Fragment = class extends CommonClass {
constructor(packets = '1-3', length = '', interval = '') {
constructor(
packets = '1-3',
length = '',
interval = ''
) {
super();
this.packets = packets;
this.length = length;
Expand Down
12 changes: 7 additions & 5 deletions web/assets/js/model/xray.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
scMinPostsIntervalMs = "10-50",
noSSEHeader = false,
xPaddingBytes = "100-1000",
xmux = {
xmux = {
maxConcurrency: 0,
maxConnections: 0,
cMaxReuseTimes: 0,
Expand All @@ -545,7 +545,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
this.scMinPostsIntervalMs = scMinPostsIntervalMs;
this.noSSEHeader = noSSEHeader;
this.xPaddingBytes = xPaddingBytes;
this.xmux = xmux;
this.xmux = xmux;
}

addHeader(name, value) {
Expand Down Expand Up @@ -909,7 +909,7 @@ class RealityStreamSettings extends XrayCommonClass {
this.minClient = minClient;
this.maxClient = maxClient;
this.maxTimediff = maxTimediff;
this.shortIds = Array.isArray(shortIds) ? shortIds.join(",") : shortIds;
this.shortIds = Array.isArray(shortIds) ? shortIds.join(",") : shortIds;
this.settings = settings;
}

Expand All @@ -920,7 +920,9 @@ class RealityStreamSettings extends XrayCommonClass {
json.settings.publicKey,
json.settings.fingerprint,
json.settings.serverName,
json.settings.spiderX);}
json.settings.spiderX
);
}
return new RealityStreamSettings(
json.show,
json.xver,
Expand Down Expand Up @@ -2598,7 +2600,7 @@ Inbound.SocksSettings.SocksAccount = class extends XrayCommonClass {

Inbound.HttpSettings = class extends Inbound.Settings {
constructor(
protocol,
protocol,
accounts = [new Inbound.HttpSettings.HttpAccount()],
allowTransparent = false,
) {
Expand Down
4 changes: 3 additions & 1 deletion web/service/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
"tag": "direct",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIP"
"domainStrategy": "UseIP",
"redirect": "",
"noises": []
}
},
{
Expand Down

0 comments on commit 2950ce0

Please sign in to comment.