a temporary hack to make sure the domain-server address is IPv4

This commit is contained in:
Stephen Birarda 2013-09-05 13:46:57 -07:00
parent d5e807ca8e
commit 9dc3ddc84a

View file

@ -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