mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-11 02:06:15 +00:00
Allow compilation on OSes without IPv6 support
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user