Skip to content
Snippets Groups Projects
Commit 9165f0bc authored by Štěpán Balážik's avatar Štěpán Balážik
Browse files

modules/rebinding: fix module logging to new server selection

Module would crash due to the change of `request->upstream`
structure.
parent 73650cc1
Branches
Tags
1 merge request!1126Rework iterate.c/selection.c error handling
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment