Allow compilation on OSes without IPv6 support

This commit is contained in:
Cameron Gutman committed 2021-04-17 23:40:36 -05:00
1 parent bced126fdb
commit 3979dbd082
6 files changed
+37 -14

No files matched your search

+1 -1
View File
@@ -151,7 +151,7 @@ unsigned int LiTestClientConnectivity(const char* testServer, unsigned short ref
goto Exit;
}
((struct sockaddr_in6*)&address)->sin6_port = htons(LiGetPortFromPortFlagIndex(i));
SET_PORT((LC_SOCKADDR*)&address, LiGetPortFromPortFlagIndex(i));
if (LiGetProtocolFromPortFlagIndex(i) == IPPROTO_TCP) {
// Initiate an asynchronous connection
err = connect(sockets[i], (struct sockaddr*)&address, address_length);