diff options
| author | Alireza Ahmadi <alireza7@gmail.com> | 2025-08-04 17:45:09 +0300 |
|---|---|---|
| committer | Alireza Ahmadi <alireza7@gmail.com> | 2025-08-04 17:45:09 +0300 |
| commit | 01f984e054fe3c6e06aeb9b947ef009fbfe5db65 (patch) | |
| tree | 20b49022e6521687301a7fc26ed78ab343ff5cd7 /web | |
| parent | e4ba5ba53a27ee256364e7031df3d43afb3b3fe6 (diff) | |
add dokodemo port mapping
Diffstat (limited to 'web')
| -rw-r--r-- | web/assets/js/model/inbound.js | 4 | ||||
| -rw-r--r-- | web/html/form/protocol/dokodemo.html | 13 | ||||
| -rw-r--r-- | web/translation/translate.ar_EG.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.en_US.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.es_ES.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.fa_IR.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.id_ID.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.ja_JP.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.pt_BR.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.ru_RU.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.tr_TR.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.uk_UA.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.vi_VN.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.zh_CN.toml | 1 | ||||
| -rw-r--r-- | web/translation/translate.zh_TW.toml | 1 |
15 files changed, 30 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, }; 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 @@ <a-form-item label='{{ i18n "pages.inbounds.destinationPort"}}'> <a-input-number v-model.number="inbound.settings.port"></a-input-number> </a-form-item> + <a-form-item label='{{ i18n "pages.inbounds.portMap"}}'> + <a-button size="small" @click="inbound.settings.portMap.push({name: '', value: ''})">+</a-button> + </a-form-item> + <a-form-item :wrapper-col="{span:24}"> + <a-input-group compact v-for="(pm, index) in inbound.settings.portMap"> + <a-input style="width: 50%" v-model.trim="pm.name" placeholder='{{ i18n "pages.inbounds.port"}}'> + <template slot="addonBefore" style="margin: 0;">[[ index+1 ]]</template> + </a-input> + <a-input style="width: 50%" v-model.trim="pm.value" placeholder='{{ i18n "pages.inbounds.targetAddress" }}'> + <a-button slot="addonAfter" size="small" @click="inbound.settings.portMap.splice(index,1)">-</a-button> + </a-input> + </a-input-group> + </a-form-item> <a-form-item label='{{ i18n "pages.inbounds.network"}}'> <a-select v-model="inbound.settings.network" :dropdown-class-name="themeSwitcher.currentTheme"> <a-select-option value="tcp,udp">TCP,UDP</a-select-option> 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" = "傳輸配置" |
