fix: 端口转发增加 ipv4 限制 (#5712)

This commit is contained in:
ssongliu 2024-07-08 16:11:23 +08:00 committed by GitHub
parent 8d1322af37
commit 1c167e828a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 0 deletions

View File

@ -2289,6 +2289,7 @@ const message = {
targetPort: 'Destination Port',
forwardHelper1: 'In the case of local port forwarding, the destination IP is: 127.0.0.1',
forwardHelper2: 'If the destination IP is not filled in, it will be forwarded to the local port by default',
forwardHelper3: 'Currently only supports port forwarding for IPv4',
},
runtime: {
runtime: 'Runtime',

View File

@ -2127,6 +2127,7 @@ const message = {
targetPort: '目標端口',
forwardHelper1: '如果是本機端口轉發目標 IP 127.0.0.1',
forwardHelper2: '如果目標 IP 不填寫默認為本機端口轉發',
forwardHelper3: '當前僅支持 IPv4 的端口轉發',
},
runtime: {
runtime: '運行環境',

View File

@ -2130,6 +2130,7 @@ const message = {
targetPort: '目标端口',
forwardHelper1: '如果是本机端口转发目标IP为127.0.0.1',
forwardHelper2: '如果目标IP不填写则默认为本机端口转发',
forwardHelper3: '当前仅支持 ipv4 的端口转发',
},
runtime: {
runtime: '运行环境',

View File

@ -29,6 +29,7 @@
<el-input v-model.trim="dialogData.rowData!.targetIP" />
<span class="input-help">{{ $t('firewall.forwardHelper1') }}</span>
<span class="input-help">{{ $t('firewall.forwardHelper2') }}</span>
<span class="input-help">{{ $t('firewall.forwardHelper3') }}</span>
</el-form-item>
<el-form-item :label="$t('firewall.targetPort')" prop="targetPort">