1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00

feat: 终端主机地址校验支持 ipv6 (#2643)

Refs #2526
This commit is contained in:
ssongliu 2023-10-23 17:17:29 +08:00 committed by GitHub
parent 2b9a7df4b2
commit 44b5a8d6bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ const rules = reactive({
name: [Rules.requiredInput],
type: [Rules.requiredSelect],
version: [Rules.requiredSelect],
address: [Rules.host],
address: [Rules.ipV4V6OrDomain],
port: [Rules.port],
username: [Rules.requiredInput],
password: [Rules.requiredInput],

View File

@ -135,7 +135,7 @@ type FormInstance = InstanceType<typeof ElForm>;
const hostInfoRef = ref<FormInstance>();
const rules = reactive({
groupID: [Rules.requiredSelect],
addr: [Rules.host],
addr: [Rules.ipV4V6OrDomain],
port: [Rules.requiredInput, Rules.port],
user: [Rules.requiredInput],
authMode: [Rules.requiredSelect],

View File

@ -116,7 +116,7 @@ watch(
);
const rules = reactive({
addr: [Rules.host],
addr: [Rules.ipV4V6OrDomain],
port: [Rules.requiredInput, Rules.port],
user: [Rules.requiredInput],
authMode: [Rules.requiredSelect],