mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-19 09:02:53 -04:00
Hack to choose the last ip which is usually the one that is wanted
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user