Skip to content

Commit 3ed0b07

Browse files
authored
fix: upstream host form warning message (#1782)
1 parent c35203a commit 3ed0b07

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

web/src/components/Upstream/components/Nodes.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ const Component: React.FC<Props> = ({ readonly }) => {
5151
/(^([1-9]?\d|1\d{2}|2[0-4]\d|25[0-5])(\.(25[0-5]|1\d{2}|2[0-4]\d|[1-9]?\d)){3}$|^(?![0-9.]+$)([a-zA-Z0-9_-]+)(\.[a-zA-Z0-9_-]+){0,}$)/,
5252
'g',
5353
),
54+
message: formatMessage({
55+
id: 'page.upstream.step.valid.domain.name.or.ip',
56+
})
5457
},
5558
]}
5659
>

web/src/pages/Upstream/locales/en-US.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default {
1919
'page.upstream.step.select.upstream.select.option': 'Custom',
2020
'page.upstream.form.item-label.node.domain.or.ip': 'Targets',
2121
'page.upstream.step.input.domain.name.or.ip': 'Please enter domain or IP',
22+
'page.upstream.step.valid.domain.name.or.ip': 'Please enter valid a domain or IP',
2223
'page.upstream.step.domain.name.or.ip': 'Hostname or IP',
2324
'page.upstream.step.input.port': 'Please enter port number',
2425
'page.upstream.step.port': 'Port',

web/src/pages/Upstream/locales/zh-CN.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default {
2020
'page.upstream.form.item-label.node.domain.or.ip': '目标节点',
2121
'page.upstream.step.input.domain.name.or.ip': '请输入域名或 IP',
2222
'page.upstream.step.domain.name.or.ip': '主机名或 IP',
23+
'page.upstream.step.valid.domain.name.or.ip': '请输入合法的域名或 IP',
2324
'page.upstream.step.input.port': '请输入',
2425
'page.upstream.step.port': '端口',
2526
'page.upstream.step.input.weight': '请输入权重',

0 commit comments

Comments
 (0)