]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Load Lua bindings before parsing yaml configuration
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 24 Mar 2025 11:46:42 +0000 (12:46 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 25 Mar 2025 09:02:07 +0000 (10:02 +0100)
commitdf96ecad8bc6d7c506e75db624e6d6887f84a4c7
treefa6bd429b35f1831106465745496ef14764bd2fe
parentb86d69e8213f00b0f028b531b86cb485a292b4fd
dnsdist: Load Lua bindings before parsing yaml configuration

We need the Lua bindings so that inline and loaded from a file Lua
syntax work. Our regression tests did not catch this because the
setup always created an empty Lua file, causing the Lua bindings to
be loaded. This commit also fixes that by not creating (and removing
if needed) empty Lua files in the regression tests setup.
pdns/dnsdistdist/dnsdist.cc
regression-tests.dnsdist/dnsdisttests.py