mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 07:04:42 +02:00
fix ordering of QHostAdress to s_addr
This commit is contained in:
parent
22d2b52ba9
commit
a9efa169be
1 changed files with 1 additions and 1 deletions
|
@ -380,7 +380,7 @@ int NodeList::processDomainServerList(unsigned char* packetData, size_t dataByte
|
|||
// if the public socket address is 0 then it's reachable at the same IP
|
||||
// as the domain server
|
||||
if (nodePublicSocket.sin_addr.s_addr == 0) {
|
||||
nodePublicSocket.sin_addr.s_addr = _domainIP.toIPv4Address();
|
||||
nodePublicSocket.sin_addr.s_addr = htonl(_domainIP.toIPv4Address());
|
||||
}
|
||||
|
||||
addOrUpdateNode((sockaddr*) &nodePublicSocket, (sockaddr*) &nodeLocalSocket, nodeType, nodeId);
|
||||
|
|
Loading…
Reference in a new issue