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:
-rw-r--r--sub/default.json4
-rw-r--r--web/assets/js/model/dbinbound.js6
-rw-r--r--web/assets/js/model/outbound.js6
-rw-r--r--web/assets/js/model/xray.js12
-rw-r--r--web/service/config.json4
5 files changed, 21 insertions, 11 deletions
diff --git a/sub/default.json b/sub/default.json
index 32948c77..931259ec 100644
--- a/sub/default.json
+++ b/sub/default.json
@@ -47,7 +47,9 @@
"tag": "direct",
"protocol": "freedom",
"settings": {
- "domainStrategy": "UseIP"
+ "domainStrategy": "UseIP",
+ "redirect": "",
+ "noises": []
}
},
{
diff --git a/web/assets/js/model/dbinbound.js b/web/assets/js/model/dbinbound.js
index 9f6f04c6..aeae1a75 100644
--- a/web/assets/js/model/dbinbound.js
+++ b/web/assets/js/model/dbinbound.js
@@ -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);
}
} \ No newline at end of file
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js
index 71c07713..4f8a8273 100644
--- a/web/assets/js/model/outbound.js
+++ b/web/assets/js/model/outbound.js
@@ -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;
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js
index 9b731a7f..ead8f7d2 100644
--- a/web/assets/js/model/xray.js
+++ b/web/assets/js/model/xray.js
@@ -529,7 +529,7 @@ class SplitHTTPStreamSettings extends XrayCommonClass {
scMinPostsIntervalMs = "10-50",
noSSEHeader = false,
xPaddingBytes = "100-1000",
- xmux = {
+ xmux = {
maxConcurrency: 0,
maxConnections: 0,
cMaxReuseTimes: 0,
@@ -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) {
@@ -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;
}
@@ -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,
@@ -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,
) {
diff --git a/web/service/config.json b/web/service/config.json
index 122963fe..ea650f7b 100644
--- a/web/service/config.json
+++ b/web/service/config.json
@@ -30,7 +30,9 @@
"tag": "direct",
"protocol": "freedom",
"settings": {
- "domainStrategy": "UseIP"
+ "domainStrategy": "UseIP",
+ "redirect": "",
+ "noises": []
}
},
{