]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix invocation
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Dec 2018 20:07:04 +0000 (20:07 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Dec 2018 20:07:04 +0000 (20:07 +0000)
lualib/lua_selectors.lua

index 8d68341b47932201d1f2c90f998301375c8fb0c4..760a15e8c96270277f72a336f86169f5fc3b614c 100644 (file)
@@ -564,7 +564,7 @@ Empty string comes the first argument or 'true', non-empty string comes nil]],
     ['process'] = function(inp, _, args)
       local rspamd_ip = require "rspamd_ip"
       -- Non optimal: convert string to an IP address
-      local ip = rspamd_ip.fromstring(inp)
+      local ip = rspamd_ip.from_string(inp)
 
       if not ip or not ip:is_valid() then
         lua_util.debugm(M, "cannot convert %s to IP", inp)