mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 20:56:41 +02:00
a temporary hack to make sure the domain-server address is IPv4
This commit is contained in:
parent
d5e807ca8e
commit
9dc3ddc84a
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ Assignment::Assignment(const unsigned char* dataBuffer, int numBytes) :
|
|||
// IPv4 address
|
||||
sockaddr_in destinationSocket = {};
|
||||
memcpy(&destinationSocket, dataBuffer + numBytesRead, sizeof(sockaddr_in));
|
||||
destinationSocket.sin_family = AF_INET;
|
||||
setDomainSocket((sockaddr*) &destinationSocket);
|
||||
} else {
|
||||
// IPv6 address
|
||||
|
|
Loading…
Reference in a new issue