mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-27 04:48:21 +01:00
Typo fixed.
This commit is contained in:
parent
734cc23e1f
commit
27fd725c6d
@ -170,7 +170,7 @@ static int meth_sendto(lua_State *L) {
|
|||||||
case PF_INET6: {
|
case PF_INET6: {
|
||||||
struct sockaddr_in6 addr;
|
struct sockaddr_in6 addr;
|
||||||
memset(&addr, 0, sizeof(addr));
|
memset(&addr, 0, sizeof(addr));
|
||||||
if (!inet_pton(AF_INET6, ip, &addr.sin6_addr) != 1)
|
if (inet_pton(AF_INET6, ip, &addr.sin6_addr) != 1)
|
||||||
luaL_argerror(L, 3, "invalid ip address");
|
luaL_argerror(L, 3, "invalid ip address");
|
||||||
addr.sin6_family = AF_INET6;
|
addr.sin6_family = AF_INET6;
|
||||||
addr.sin6_port = htons(port);
|
addr.sin6_port = htons(port);
|
||||||
|
Loading…
Reference in New Issue
Block a user