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:
@@ -401,6 +401,9 @@ class AppLocalizationsZh extends AppLocalizations {
|
||||
@override
|
||||
String get invalid => '无效';
|
||||
|
||||
@override
|
||||
String get invalidHostFormat => '主机格式无效,仅支持 IPv4、IPv6 和域名字符。';
|
||||
|
||||
@override
|
||||
String get jumpServer => '跳板服务器';
|
||||
|
||||
@@ -1380,6 +1383,9 @@ class AppLocalizationsZhTw extends AppLocalizationsZh {
|
||||
@override
|
||||
String get invalid => '無效';
|
||||
|
||||
@override
|
||||
String get invalidHostFormat => '主機格式無效,僅支援 IPv4、IPv6 和網域字元。';
|
||||
|
||||
@override
|
||||
String get jumpServer => '跳板伺服器';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user