Fixed NetResolveHost for xxx.xxx.xxx.xxx host notation
This commit is contained in:
parent
79fcffb921
commit
9beceeeef9
1 changed files with 2 additions and 1 deletions
|
@ -801,9 +801,9 @@ global unsigned long NetResolveHost(const char* host)
|
|||
addr=0;
|
||||
DebugCheck( he->h_length!=4 );
|
||||
memcpy(&addr,he->h_addr,he->h_length);
|
||||
return addr;
|
||||
}
|
||||
}
|
||||
return addr;
|
||||
}
|
||||
return INADDR_NONE;
|
||||
}
|
||||
|
@ -1146,6 +1146,7 @@ global void InitNetwork(void)
|
|||
}
|
||||
if( host==INADDR_NONE ) {
|
||||
fprintf(stderr,"Can't resolve host %s\n",NetworkArg);
|
||||
exit(-1);
|
||||
}
|
||||
DebugLevel0(__FUNCTION__": Server %ld:%d\n",host,ntohs(port));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue