mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-06 09:50:28 +00:00
GetServerAddr() won't crash redbean during init anymore
This commit is contained in:
parent
e5d1536256
commit
3fb6f1711c
1 changed files with 1 additions and 0 deletions
|
@ -3923,6 +3923,7 @@ static int LuaGetAddr(lua_State *L, void GetAddr(uint32_t *, uint16_t *)) {
|
|||
}
|
||||
|
||||
static int LuaGetServerAddr(lua_State *L) {
|
||||
DontCallFromInitLua(L,"GetServerAddr")
|
||||
OnlyCallDuringConnection(L, "GetServerAddr");
|
||||
return LuaGetAddr(L, GetServerAddr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue