diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-11-10 10:25:36 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-11-10 10:25:36 +0000 |
commit | 3adc6d6e2a64a0ccd2bf662360b4788e8c751e45 (patch) | |
tree | a51e4247e379655919334e61f45af55f878b636f | |
parent | 01cab363f0441445b57219047344eefa8d0ae7dd (diff) | |
download | rspamd-3adc6d6e2a64a0ccd2bf662360b4788e8c751e45.tar.gz rspamd-3adc6d6e2a64a0ccd2bf662360b4788e8c751e45.zip |
[Minor] Do something when no successful replies are detected
-rw-r--r-- | lualib/rspamadm/fuzzy_ping.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lualib/rspamadm/fuzzy_ping.lua b/lualib/rspamadm/fuzzy_ping.lua index 4f5940f0c..e0345da5f 100644 --- a/lualib/rspamadm/fuzzy_ping.lua +++ b/lualib/rspamadm/fuzzy_ping.lua @@ -156,6 +156,10 @@ local function print_results(results) else err_servers[res.server] = 1 end + -- For the case if no successful replies are detected + if not servers[res.server] then + servers[res.server] = {} + end end end |