Merge d7856b222d02532412cec7c018bbd6cf33eca91f into 9100f7e3abf3511009fa21de1e0b304cac5489d3

This commit is contained in:
georgeto 2023-10-17 10:17:30 +03:00 committed by GitHub
commit c518d25dbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -290,7 +290,7 @@ int inet_meth_getsockname(lua_State *L, p_socket ps, int family)
return 2;
}
lua_pushstring(L, name);
lua_pushstring(L, port);
lua_pushinteger(L, (int) strtol(port, (char **) NULL, 10));
switch (family) {
case AF_INET: lua_pushliteral(L, "inet"); break;
case AF_INET6: lua_pushliteral(L, "inet6"); break;