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:
authorAlireza Ahmadi <alireza7@gmail.com>2025-08-04 17:45:09 +0300
committerAlireza Ahmadi <alireza7@gmail.com>2025-08-04 17:45:09 +0300
commit01f984e054fe3c6e06aeb9b947ef009fbfe5db65 (patch)
tree20b49022e6521687301a7fc26ed78ab343ff5cd7 /web/assets
parente4ba5ba53a27ee256364e7031df3d43afb3b3fe6 (diff)
add dokodemo port mapping
Diffstat (limited to 'web/assets')
-rw-r--r--web/assets/js/model/inbound.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/assets/js/model/inbound.js b/web/assets/js/model/inbound.js
index da5522a5..a2f85194 100644
--- a/web/assets/js/model/inbound.js
+++ b/web/assets/js/model/inbound.js
@@ -2312,12 +2312,14 @@ Inbound.DokodemoSettings = class extends Inbound.Settings {
protocol,
address,
port,
+ portMap = [],
network = 'tcp,udp',
followRedirect = false
) {
super(protocol);
this.address = address;
this.port = port;
+ this.portMap = portMap;
this.network = network;
this.followRedirect = followRedirect;
}
@@ -2327,6 +2329,7 @@ Inbound.DokodemoSettings = class extends Inbound.Settings {
Protocols.DOKODEMO,
json.address,
json.port,
+ XrayCommonClass.toHeaders(json.portMap),
json.network,
json.followRedirect,
);
@@ -2336,6 +2339,7 @@ Inbound.DokodemoSettings = class extends Inbound.Settings {
return {
address: this.address,
port: this.port,
+ portMap: XrayCommonClass.toV2Headers(this.portMap),
network: this.network,
followRedirect: this.followRedirect,
};