Revert "Resolve client host name using DNS."

This reverts commit 48df667a37.
This commit is contained in:
Bartosz Taudul 2019-06-26 17:58:23 +02:00
parent 0aa0b4ac8a
commit a8cb257474
2 changed files with 2 additions and 2 deletions

View File

@ -437,7 +437,7 @@ IpAddress::~IpAddress()
void IpAddress::Set( const struct sockaddr& addr )
{
auto ai = (const struct sockaddr_in*)&addr;
getnameinfo( &addr, sizeof( sockaddr_in ), m_text, 64, nullptr, 0, NI_NOFQDN );
inet_ntop( AF_INET, &ai->sin_addr, m_text, 17 );
m_number = ai->sin_addr.s_addr;
}

View File

@ -103,7 +103,7 @@ public:
private:
uint32_t m_number;
char m_text[64];
char m_text[17];
};
class UdpListen