fix(server): Add boundary check for editing host name (#1018)
* feat(localization): Add validation prompt for invalid host formats Add validation for host formats, allowing only IPv4, IPv6, and domain name formats Add regular expression validation for host format on the server editing page Update multilingual files to add the invalidHostFormat field * chore: Update dependent package versions to the latest * fix(server edit): Update the hostname regular expression to support IPv6 zone identifiers Modify the regular expression for hostname validation to add support for IPv6 zone identifiers (such as %en0)
This commit is contained in:
@@ -122,6 +122,7 @@
|
||||
"install": "install",
|
||||
"installDockerWithUrl": "Please https://docs.docker.com/engine/install docker first.",
|
||||
"invalid": "Invalid",
|
||||
"invalidHostFormat": "Invalid host format. Only IPv4, IPv6, and domain characters are allowed.",
|
||||
"jumpServer": "Jump server",
|
||||
"keepForeground": "Keep app foreground!",
|
||||
"keepStatusWhenErr": "Preserve the last server state",
|
||||
|
||||
@@ -122,6 +122,7 @@
|
||||
"install": "Встановити",
|
||||
"installDockerWithUrl": "Будь ласка, спочатку встановіть Docker. (https://docs.docker.com/engine/install)",
|
||||
"invalid": "Недійсний",
|
||||
"invalidHostFormat": "Недійсний формат хоста. Дозволено лише символи IPv4, IPv6 та домену.",
|
||||
"jumpServer": "Стрибковий Сервер",
|
||||
"keepForeground": "Тримати застосунок на передньому плані!",
|
||||
"keepStatusWhenErr": "Зберегати останній стан сервера",
|
||||
|
||||
@@ -122,6 +122,7 @@
|
||||
"install": "安装",
|
||||
"installDockerWithUrl": "请先前往 https://docs.docker.com/engine/install 安装 Docker",
|
||||
"invalid": "无效",
|
||||
"invalidHostFormat": "主机格式无效,仅支持 IPv4、IPv6 和域名字符。",
|
||||
"jumpServer": "跳板服务器",
|
||||
"keepForeground": "请将应用保持在前台运行",
|
||||
"keepStatusWhenErr": "保留上次的服务器状态",
|
||||
|
||||
@@ -122,6 +122,7 @@
|
||||
"install": "安裝",
|
||||
"installDockerWithUrl": "請先前往 https://docs.docker.com/engine/install 安裝 Docker",
|
||||
"invalid": "無效",
|
||||
"invalidHostFormat": "主機格式無效,僅支援 IPv4、IPv6 和網域字元。",
|
||||
"jumpServer": "跳板伺服器",
|
||||
"keepForeground": "請讓 App 保持在前景執行",
|
||||
"keepStatusWhenErr": "保留上次的伺服器狀態",
|
||||
|
||||
Reference in New Issue
Block a user