File diff r11619:b5d427e84625 → r11620:47f6e7f62646
src/network/core/address.cpp
Show inline comments
 
@@ -14,7 +14,7 @@
 

	
 
const char *NetworkAddress::GetHostname()
 
{
 
	if (StrEmpty(this->hostname)) {
 
	if (StrEmpty(this->hostname) && this->address.ss_family != AF_UNSPEC) {
 
		assert(this->address_length != 0);
 
		getnameinfo((struct sockaddr *)&this->address, this->address_length, this->hostname, sizeof(this->hostname), NULL, 0, NI_NUMERICHOST);
 
	}