mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed boardcast
This commit is contained in:
parent
19a8054df6
commit
86f4deef8c
|
@ -1363,7 +1363,7 @@ NETSOCKET net_udp_create(NETADDR bindaddr)
|
|||
sock.type |= NETTYPE_IPV4;
|
||||
sock.ipv4sock = socket;
|
||||
|
||||
/* set boardcast */
|
||||
/* set broadcast */
|
||||
setsockopt(socket, SOL_SOCKET, SO_BROADCAST, (const char*)&broadcast, sizeof(broadcast));
|
||||
|
||||
/* set receive buffer size */
|
||||
|
@ -1411,7 +1411,7 @@ NETSOCKET net_udp_create(NETADDR bindaddr)
|
|||
sock.type |= NETTYPE_IPV6;
|
||||
sock.ipv6sock = socket;
|
||||
|
||||
/* set boardcast */
|
||||
/* set broadcast */
|
||||
setsockopt(socket, SOL_SOCKET, SO_BROADCAST, (const char*)&broadcast, sizeof(broadcast));
|
||||
|
||||
/* set receive buffer size */
|
||||
|
|
Loading…
Reference in a new issue