判断HostName是否有值
This commit is contained in:
parent
299d81b76b
commit
2956fa406a
@ -188,7 +188,11 @@ namespace FastGithub
|
||||
}
|
||||
|
||||
var globalPropreties = IPGlobalProperties.GetIPGlobalProperties();
|
||||
yield return globalPropreties.HostName;
|
||||
if (string.IsNullOrEmpty(globalPropreties.HostName) == false)
|
||||
{
|
||||
yield return globalPropreties.HostName;
|
||||
}
|
||||
|
||||
foreach (var item in globalPropreties.GetUnicastAddresses())
|
||||
{
|
||||
if (item.Address.AddressFamily == AddressFamily.InterNetwork)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user