Hack to choose the last ip which is usually the one that is wanted

This commit is contained in:
Anonymous
2014-01-18 01:21:39 -07:00
parent b61c5d9f35
commit b33724e9f7
2 changed files with 9 additions and 1 deletions
@@ -22,6 +22,8 @@ struct HN
HN::HN()
{
WSADATA wsaData;
int iResult = WSAStartup(MAKEWORD(2, 2), &wsaData);
char name[512] = {"\0"};
if(gethostname(name, sizeof(name)) == 0)
{