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