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:
Andrew Schwartzmeyer 2016-09-02 10:27:11 -07:00
parent 2bff2443ee
commit 683e6fbe36

View file

@ -30,11 +30,6 @@ char *GetFullyQualifiedName()
return NULL;
}
if (strchr(computerName, '.') != NULL)
{
return computerName;
}
struct addrinfo hints, *info;
memset(&hints, 0, sizeof hints);