mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-05-01 12:46:45 +02:00
Merge d7856b222d02532412cec7c018bbd6cf33eca91f into 0f37af645c5f3a0377f1650b529ed23b2e26749f
This commit is contained in:
commit
1b2780c1ab
@ -290,7 +290,7 @@ int inet_meth_getsockname(lua_State *L, p_socket ps, int family)
|
|||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
lua_pushstring(L, name);
|
lua_pushstring(L, name);
|
||||||
lua_pushstring(L, port);
|
lua_pushinteger(L, (int) strtol(port, (char **) NULL, 10));
|
||||||
switch (family) {
|
switch (family) {
|
||||||
case AF_INET: lua_pushliteral(L, "inet"); break;
|
case AF_INET: lua_pushliteral(L, "inet"); break;
|
||||||
case AF_INET6: lua_pushliteral(L, "inet6"); break;
|
case AF_INET6: lua_pushliteral(L, "inet6"); break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user