]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
modules/rebinding: fix module logging to new server selection
authorŠtěpán Balážik <stepan.balazik@nic.cz>
Mon, 25 Jan 2021 09:40:13 +0000 (10:40 +0100)
committerŠtěpán Balážik <stepan.balazik@nic.cz>
Mon, 25 Jan 2021 14:42:55 +0000 (15:42 +0100)
Module would crash due to the change of `request->upstream`
structure.

modules/rebinding/rebinding.lua

index e961033d992705a16c9852b31fe880a23c1ab806..f75656ca88900b176a1553622f4007a979bbd4d8 100644 (file)
@@ -109,9 +109,7 @@ function M.layer.consume(state, req, pkt)
        end
        if verbose() then
                ffi.C.kr_log_q(qry, 'rebinding',
-                   'blocking blacklisted IP in RR \'%s\' received from IP %s\n',
-                   kres.rr2str(bad_rr),
-                   tostring(kres.sockaddr_t(req.upstream.addr)))
+                   'blocking blacklisted IP in RR \'%s\'\n', kres.rr2str(bad_rr))
        end
        return state
 end