mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
fix wrong type
This commit is contained in:
parent
7ff07b137a
commit
daebe15442
@ -69,9 +69,9 @@ void AddApiHostToDirectIpList(const std::string &str) {
|
||||
ipbuf[15] = '\0';
|
||||
}
|
||||
|
||||
int iaddr = inet_addr(ipbuf);
|
||||
uint32_t iaddr = inet_addr(ipbuf);
|
||||
|
||||
if (iaddr != -1) {
|
||||
if (iaddr != INADDR_NONE) {
|
||||
apiServerEntry entry = {iaddr, htons(iport)};
|
||||
directIpHostList.push(entry);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user