We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a49ae9e commit 05c6e01Copy full SHA for 05c6e01
1 file changed
src/socket.cpp
@@ -383,6 +383,7 @@ void CSocket::OnDataReceived()
383
return;
384
}
385
386
+ // convert address of client
387
if ( UdpSocketAddr.sa.sa_family == AF_INET6 )
388
{
389
if ( IN6_IS_ADDR_V4MAPPED ( &( UdpSocketAddr.sa6.sin6_addr ) ) )
@@ -398,7 +399,6 @@ void CSocket::OnDataReceived()
398
399
400
else
401
- // convert address of client
402
RecHostAddr.InetAddr.setAddress ( ntohl ( UdpSocketAddr.sa4.sin_addr.s_addr ) );
403
RecHostAddr.iPort = ntohs ( UdpSocketAddr.sa4.sin_port );
404
0 commit comments