Skip to content

Commit

Permalink
Add searching46dof's IPv6 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AIRLegend committed Sep 8, 2022
1 parent 8a930d6 commit 9738c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client/src/model/UDPSender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void UDPSender::send_data(double* d)
{
// Make packet
const char* pkt = (char*)d;
sendto(s, pkt, BUFFER_SIZE, 0, (sockaddr*)&dest, sizeof(dest));
sendto(s, pkt, BUFFER_SIZE, 0, (sockaddr*)&dest, (dest.sin_family == AF_INET6 ? sizeof(dest_IPv6) : sizeof(dest)));
};


0 comments on commit 9738c45

Please sign in to comment.