Skip to content

Commit

Permalink
Move comment to better place
Browse files Browse the repository at this point in the history
  • Loading branch information
softins committed May 15, 2024
1 parent a49ae9e commit 05c6e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ void CSocket::OnDataReceived()
return;
}

// convert address of client
if ( UdpSocketAddr.sa.sa_family == AF_INET6 )
{
if ( IN6_IS_ADDR_V4MAPPED ( &( UdpSocketAddr.sa6.sin6_addr ) ) )
Expand All @@ -398,7 +399,6 @@ void CSocket::OnDataReceived()
}
else
{
// convert address of client
RecHostAddr.InetAddr.setAddress ( ntohl ( UdpSocketAddr.sa4.sin_addr.s_addr ) );
RecHostAddr.iPort = ntohs ( UdpSocketAddr.sa4.sin_port );
}
Expand Down

0 comments on commit 05c6e01

Please sign in to comment.