mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Remove incorrect logic from GetFullyQualifiedName()
I think this logic was originally added with the assumption that any hostname with a dot in it was an FQDN. I believe this is incorrect. The hostname is the hostname regardless of included dots, and getting the FQDN amounts to always querying for the canonical name.
This commit is contained in:
1 parent
2bff2443ee
commit
683e6fbe36
1 file changed
-5
@@ -30,11 +30,6 @@ char *GetFullyQualifiedName()
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (strchr(computerName, '.') != NULL)
|
||||
{
|
||||
return computerName;
|
||||
}
|
||||
|
||||
struct addrinfo hints, *info;
|
||||
|
||||
memset(&hints, 0, sizeof hints);
|
||||
|
||||
Reference in new issue
Block a user