From: Vladimír Čunát Date: Fri, 30 Oct 2020 06:37:31 +0000 (+0100) Subject: lua net.listen(): default freebind = false X-Git-Tag: v5.2.0~1^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5830ecee94d298fc4720145fde8e0e158767bc4b;p=thirdparty%2Fknot-resolver.git lua net.listen(): default freebind = false It's unclear why it defaulted to true in TLS cases. --- diff --git a/daemon/bindings/net.c b/daemon/bindings/net.c index c99522a43..37ae24001 100644 --- a/daemon/bindings/net.c +++ b/daemon/bindings/net.c @@ -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);