|
|
@@ -325,8 +325,8 @@ export default {
|
|
|
if (!this.isValid(mask, validIPv4, type, '子网掩码')) {
|
|
|
return false
|
|
|
}
|
|
|
- if (gateway && !validIPv4(gateway)) {
|
|
|
- return this.onError('IPv4的网关格式错误')
|
|
|
+ if (!this.isValid(gateway, validIPv4, type, '网关')) {
|
|
|
+ return false
|
|
|
}
|
|
|
if (dns1 && !validIPv4(dns1)) {
|
|
|
return this.onError('IPv4的主DNS格式错误')
|