]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
fix renumber module configuration with multiple IP addresses
authorChristophe Nowicki <cscm@csquad.org>
Tue, 7 Jul 2020 16:00:59 +0000 (18:00 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 8 Dec 2020 17:22:21 +0000 (18:22 +0100)
modules/renumber/renumber.lua

index 0d3f29393fdba594c5d0bb288c42d8a0b2d0e458..25e8624fe3fb345a1e70646557d1bbf4649d7aeb 100644 (file)
@@ -115,7 +115,7 @@ function M.config (conf)
        if type(conf) ~= 'table' or type(conf[1]) ~= 'table' then
                error('[renumber] expected { {prefix, target}, ... }')
        end
-       for i = 1, #conf do add_prefix(conf[i][1], conf[1][2]) end
+       for i = 1, #conf do add_prefix(conf[i][1], conf[i][2]) end
 end
 
 -- Layers