|
|
@@ -595,7 +595,7 @@ public partial class DeviceDetailsWindow : Window
|
|
|
if (IsNetworkOrBroadcastAddress(parts[0], cidrPrefix))
|
|
|
{
|
|
|
addresses = [];
|
|
|
- error = $"IP 地址不能是网络地址或广播地址:{parts[0]}/{cidrPrefix}";
|
|
|
+ error = $"接口 IP 不能填写网段地址或广播地址:{parts[0]}/{cidrPrefix}";
|
|
|
return false;
|
|
|
}
|
|
|
row.IP = parts[0];
|
|
|
@@ -618,7 +618,7 @@ public partial class DeviceDetailsWindow : Window
|
|
|
if (IsNetworkOrBroadcastAddress(ip, prefix))
|
|
|
{
|
|
|
addresses = [];
|
|
|
- error = $"IP 地址不能是网络地址或广播地址:{ip}/{prefix}";
|
|
|
+ error = $"接口 IP 不能填写网段地址或广播地址:{ip}/{prefix}";
|
|
|
return false;
|
|
|
}
|
|
|
row.Mask = PrefixToMask(prefix);
|
|
|
@@ -699,7 +699,7 @@ public partial class DeviceDetailsWindow : Window
|
|
|
if (!string.Equals(to, networkAddress, StringComparison.Ordinal))
|
|
|
{
|
|
|
routes = [];
|
|
|
- error = $"自定义路由目标必须是网络地址:当前为 {to}/{prefix},应为 {networkAddress}/{prefix}";
|
|
|
+ error = $"自定义路由目标必须填写目标网段地址(网络号):当前为 {to}/{prefix},应为 {networkAddress}/{prefix}";
|
|
|
return false;
|
|
|
}
|
|
|
row.Mask = PrefixToMask(prefix);
|
|
|
@@ -751,7 +751,7 @@ public partial class DeviceDetailsWindow : Window
|
|
|
if (IsNetworkOrBroadcastAddress(cidrParts[0], prefix))
|
|
|
{
|
|
|
addresses = [];
|
|
|
- error = $"IP 地址不能是网络地址或广播地址:{cidrParts[0]}/{prefix}";
|
|
|
+ error = $"接口 IP 不能填写网段地址或广播地址:{cidrParts[0]}/{prefix}";
|
|
|
return false;
|
|
|
}
|
|
|
result.Add(new RemoteInterfaceAddressConfig { IP = cidrParts[0], Prefix = prefix });
|
|
|
@@ -773,7 +773,7 @@ public partial class DeviceDetailsWindow : Window
|
|
|
if (IsNetworkOrBroadcastAddress(parts[0], parsedPrefix))
|
|
|
{
|
|
|
addresses = [];
|
|
|
- error = $"IP 地址不能是网络地址或广播地址:{parts[0]}/{parsedPrefix}";
|
|
|
+ error = $"接口 IP 不能填写网段地址或广播地址:{parts[0]}/{parsedPrefix}";
|
|
|
return false;
|
|
|
}
|
|
|
result.Add(new RemoteInterfaceAddressConfig { IP = parts[0], Prefix = parsedPrefix });
|