From 01f984e054fe3c6e06aeb9b947ef009fbfe5db65 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Mon, 4 Aug 2025 16:45:09 +0200 Subject: add dokodemo port mapping --- web/assets/js/model/inbound.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'web/assets') 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, }; -- cgit v1.2.3