mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-05-01 04:36:45 +02:00
Compare commits
3 Commits
8f816d0972
...
c518d25dbc
Author | SHA1 | Date | |
---|---|---|---|
|
c518d25dbc | ||
|
9100f7e3ab | ||
|
d7856b222d |
@ -1,8 +1,8 @@
|
|||||||
# LuaSocket
|
# LuaSocket
|
||||||
|
|
||||||
|
|
||||||
[](https://github.com/lunarmodules/luasocket/actions?workflow=Build)
|
[](https://github.com/lunarmodules/luasocket/actions?workflow=Build)
|
||||||
[](https://github.com/lunarmodules/luasocket/actions?workflow=Luacheck)
|
[](https://github.com/lunarmodules/luasocket/actions?workflow=Luacheck)
|
||||||
[](https://github.com/lunarmodules/luasocket/releases)
|
[](https://github.com/lunarmodules/luasocket/releases)
|
||||||
[](https://luarocks.org/modules/lunarmodules/luasocket)
|
[](https://luarocks.org/modules/lunarmodules/luasocket)
|
||||||
|
|
||||||
|
@ -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