We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a19055c + ad51f4d commit 0d58188Copy full SHA for 0d58188
1 file changed
Source/NETworkManager/ViewModels/Applications/NetworkInterfaceViewModel.cs
@@ -144,7 +144,7 @@ public NetworkInterfaceInfo SelectedNetworkInterface
144
ConfigEnableStaticIPAddress = true;
145
ConfigIPAddress = value.IPv4Address.FirstOrDefault().ToString();
146
ConfigSubnetmaskOrCidr = value.Subnetmask.FirstOrDefault().ToString();
147
- ConfigGateway = value.IPv4Gateway.FirstOrDefault().ToString();
+ ConfigGateway = (value.IPv4Gateway == null) ? value.IPv4Gateway.ToString() : string.Empty;
148
}
149
150
if (value.DNSAutoconfigurationEnabled)
0 commit comments