mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
caught by autobuild, missing net->sock to net change
This commit is contained in:
parent
dbd75e903e
commit
9439d296f1
|
@ -71,7 +71,7 @@ static uint32_t send_broadcasts(Networking_Core *net, uint16_t port, uint8_t * d
|
||||||
sock_holder = (struct sockaddr_in *)&i_faces[i].ifr_broadaddr;
|
sock_holder = (struct sockaddr_in *)&i_faces[i].ifr_broadaddr;
|
||||||
if (sock_holder != NULL) {
|
if (sock_holder != NULL) {
|
||||||
IP_Port ip_port = {{{{sock_holder->sin_addr.s_addr}}, port, 0}};
|
IP_Port ip_port = {{{{sock_holder->sin_addr.s_addr}}, port, 0}};
|
||||||
sendpacket(net->sock, ip_port, data, 1 + crypto_box_PUBLICKEYBYTES);
|
sendpacket(net, ip_port, data, 1 + crypto_box_PUBLICKEYBYTES);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user