push_nullable_string(rh.by_hostname, "by_hostname"); | push_nullable_string(rh.by_hostname, "by_hostname"); | ||||
push_nullable_string(rh.for_mbox, "for"); | push_nullable_string(rh.for_mbox, "for"); | ||||
rspamd_lua_ip_push (L, rh.addr); | |||||
if (rh.addr) { | |||||
rspamd_lua_ip_push(L, rh.addr); | |||||
} | |||||
else { | |||||
lua_pushnil(L); | |||||
} | |||||
lua_setfield(L, -2, "real_ip"); | lua_setfield(L, -2, "real_ip"); | ||||
const auto *proto = "unknown"; | const auto *proto = "unknown"; |