From 86f4deef8c5f6a4ec6018cc6e1cbc9a947118005 Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Tue, 24 Oct 2017 13:40:35 +0200 Subject: [PATCH] fixed boardcast --- src/base/system.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/system.c b/src/base/system.c index 7b8261182..9216fe534 100644 --- a/src/base/system.c +++ b/src/base/system.c @@ -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 */