Skip to content
Snippets Groups Projects
Verified Commit 5830ecee authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

lua net.listen(): default freebind = false

It's unclear why it defaulted to true in TLS cases.
parent 4e0fb7cb
Branches
Tags
1 merge request!1083server-side XDP support
......@@ -229,7 +229,7 @@ static int net_listen(lua_State *L)
if (!lua_istable(L, 3))
lua_error_p(L, "wrong type of third parameter (table expected)");
flags.tls = table_get_flag(L, 3, "tls", flags.tls);
flags.freebind = table_get_flag(L, 3, "freebind", flags.tls);
flags.freebind = table_get_flag(L, 3, "freebind", false);
lua_getfield(L, 3, "kind");
const char *k = lua_tostring(L, -1);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment