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:
parent
2bff2443ee
commit
683e6fbe36
1 changed files with 0 additions and 5 deletions
|
@ -30,11 +30,6 @@ char *GetFullyQualifiedName()
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strchr(computerName, '.') != NULL)
|
|
||||||
{
|
|
||||||
return computerName;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct addrinfo hints, *info;
|
struct addrinfo hints, *info;
|
||||||
|
|
||||||
memset(&hints, 0, sizeof hints);
|
memset(&hints, 0, sizeof hints);
|
||||||
|
|
Loading…
Reference in a new issue