]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lua net.listen(): default freebind = false
authorVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 30 Oct 2020 06:37:31 +0000 (07:37 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 10 Nov 2020 16:16:46 +0000 (17:16 +0100)
It's unclear why it defaulted to true in TLS cases.

daemon/bindings/net.c

index c99522a43b9f4d2cd8422a351f132ff01f1d2503..37ae240018a1e213a0946baf4f74ba0a233c81e0 100644 (file)
@@ -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);