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, }; diff --git a/web/html/form/protocol/dokodemo.html b/web/html/form/protocol/dokodemo.html index 70ffe7e0..267dcf4e 100644 --- a/web/html/form/protocol/dokodemo.html +++ b/web/html/form/protocol/dokodemo.html @@ -6,6 +6,19 @@ + + + + + + + + + + + - + + + TCP,UDP diff --git a/web/translation/translate.ar_EG.toml b/web/translation/translate.ar_EG.toml index c3748499..3c2fc04f 100644 --- a/web/translation/translate.ar_EG.toml +++ b/web/translation/translate.ar_EG.toml @@ -158,6 +158,7 @@ "remark" = "ملاحظة" "protocol" = "بروتوكول" "port" = "بورت" +"portMap" = "خريطة البورت" "traffic" = "الترافيك" "details" = "تفاصيل" "transportConfig" = "نقل" diff --git a/web/translation/translate.en_US.toml b/web/translation/translate.en_US.toml index eb2389dd..4ddef0da 100644 --- a/web/translation/translate.en_US.toml +++ b/web/translation/translate.en_US.toml @@ -158,6 +158,7 @@ "remark" = "Remark" "protocol" = "Protocol" "port" = "Port" +"portMap" = "Port Mapping" "traffic" = "Traffic" "details" = "Details" "transportConfig" = "Transport" diff --git a/web/translation/translate.es_ES.toml b/web/translation/translate.es_ES.toml index e682bd38..51a5aea8 100644 --- a/web/translation/translate.es_ES.toml +++ b/web/translation/translate.es_ES.toml @@ -158,6 +158,7 @@ "remark" = "Notas" "protocol" = "Protocolo" "port" = "Puerto" +"portMap" = "Puertos de Destino" "traffic" = "Tráfico" "details" = "Detalles" "transportConfig" = "Transporte" diff --git a/web/translation/translate.fa_IR.toml b/web/translation/translate.fa_IR.toml index 4d3aa6ae..35100f66 100644 --- a/web/translation/translate.fa_IR.toml +++ b/web/translation/translate.fa_IR.toml @@ -158,6 +158,7 @@ "remark" = "نام" "protocol" = "پروتکل" "port" = "پورت" +"portMap" = "پورت‌های نظیر" "traffic" = "ترافیک" "details" = "توضیحات" "transportConfig" = "نحوه اتصال" diff --git a/web/translation/translate.id_ID.toml b/web/translation/translate.id_ID.toml index bc36f046..21e87dd7 100644 --- a/web/translation/translate.id_ID.toml +++ b/web/translation/translate.id_ID.toml @@ -158,6 +158,7 @@ "remark" = "Catatan" "protocol" = "Protokol" "port" = "Port" +"portMap" = "Port Mapping" "traffic" = "Traffic" "details" = "Rincian" "transportConfig" = "Transport" diff --git a/web/translation/translate.ja_JP.toml b/web/translation/translate.ja_JP.toml index c4461fcf..4bc620c6 100644 --- a/web/translation/translate.ja_JP.toml +++ b/web/translation/translate.ja_JP.toml @@ -158,6 +158,7 @@ "remark" = "備考" "protocol" = "プロトコル" "port" = "ポート" +"portMap" = "ポートマッピング" "traffic" = "トラフィック" "details" = "詳細情報" "transportConfig" = "トランスポート設定" diff --git a/web/translation/translate.pt_BR.toml b/web/translation/translate.pt_BR.toml index a59fb81c..a81f95fb 100644 --- a/web/translation/translate.pt_BR.toml +++ b/web/translation/translate.pt_BR.toml @@ -158,6 +158,7 @@ "remark" = "Observação" "protocol" = "Protocolo" "port" = "Porta" +"portMap" = "Porta Mapeada" "traffic" = "Tráfego" "details" = "Detalhes" "transportConfig" = "Transporte" diff --git a/web/translation/translate.ru_RU.toml b/web/translation/translate.ru_RU.toml index 95ea9509..114ada89 100644 --- a/web/translation/translate.ru_RU.toml +++ b/web/translation/translate.ru_RU.toml @@ -158,6 +158,7 @@ "remark" = "Примечание" "protocol" = "Протокол" "port" = "Порт" +"portMap" = "Порт-маппинг" "traffic" = "Трафик" "details" = "Подробнее" "transportConfig" = "Транспорт" diff --git a/web/translation/translate.tr_TR.toml b/web/translation/translate.tr_TR.toml index 95d27f2c..319b2a9e 100644 --- a/web/translation/translate.tr_TR.toml +++ b/web/translation/translate.tr_TR.toml @@ -158,6 +158,7 @@ "remark" = "Açıklama" "protocol" = "Protokol" "port" = "Port" +"portMap" = "Port Atama" "traffic" = "Trafik" "details" = "Detaylar" "transportConfig" = "Taşıma" diff --git a/web/translation/translate.uk_UA.toml b/web/translation/translate.uk_UA.toml index 6847b8a0..46edca82 100644 --- a/web/translation/translate.uk_UA.toml +++ b/web/translation/translate.uk_UA.toml @@ -158,6 +158,7 @@ "remark" = "Примітка" "protocol" = "Протокол" "port" = "Порт" +"portMap" = "Порт-перехід" "traffic" = "Трафік" "details" = "Деталі" "transportConfig" = "Транспорт" diff --git a/web/translation/translate.vi_VN.toml b/web/translation/translate.vi_VN.toml index 4c3bd99e..c73dc383 100644 --- a/web/translation/translate.vi_VN.toml +++ b/web/translation/translate.vi_VN.toml @@ -158,6 +158,7 @@ "remark" = "Chú thích" "protocol" = "Giao thức" "port" = "Cổng" +"portMap" = "Cổng tạo" "traffic" = "Lưu lượng" "details" = "Chi tiết" "transportConfig" = "Giao vận" diff --git a/web/translation/translate.zh_CN.toml b/web/translation/translate.zh_CN.toml index 6172c32c..ebe57f64 100644 --- a/web/translation/translate.zh_CN.toml +++ b/web/translation/translate.zh_CN.toml @@ -158,6 +158,7 @@ "remark" = "备注" "protocol" = "协议" "port" = "端口" +"portMap" = "端口映射" "traffic" = "流量" "details" = "详细信息" "transportConfig" = "传输配置" diff --git a/web/translation/translate.zh_TW.toml b/web/translation/translate.zh_TW.toml index beb0c34d..694cd9f3 100644 --- a/web/translation/translate.zh_TW.toml +++ b/web/translation/translate.zh_TW.toml @@ -158,6 +158,7 @@ "remark" = "備註" "protocol" = "協議" "port" = "埠" +"portMap" = "埠映射" "traffic" = "流量" "details" = "詳細資訊" "transportConfig" = "傳輸配置"