public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
[Rspamd] Check if ip is valid (KEEP_SPAM symbol), fixes #1759
1b5409f3
data/conf/rspamd/lua/rspamd.local.lua | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Diff
diff --git a/data/conf/rspamd/lua/rspamd.local.lua b/data/conf/rspamd/lua/rspamd.local.lua
index 3043ec86..c6fc0b98 100644
--- a/data/conf/rspamd/lua/rspamd.local.lua
+++ b/data/conf/rspamd/lua/rspamd.local.lua
@@ -23,11 +23,11 @@ rspamd_config:register_symbol({
local redis_params = rspamd_parse_redis_server('keep_spam')
local ip = task:get_from_ip()
- if not ip then
+ if not ip:is_valid() then
return false
end
- local from_ip_string = ip:to_string()
+ local from_ip_string = tostring(ip)
ip_check_table = {from_ip_string}
local maxbits = 128