diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-13 15:17:45 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-13 15:17:45 +0100 |
commit | 9370ea45e1a9b745cec61cd0e90389ee37f4853a (patch) | |
tree | d70d4da3d8bfa5e3dd5d0ac99fa6a2ad63ef5c0c /src/lua/lua_http.c | |
parent | 1ccfaf0523b69bda6f34e33faaf2dc9f321abfa9 (diff) | |
download | rspamd-9370ea45e1a9b745cec61cd0e90389ee37f4853a.tar.gz rspamd-9370ea45e1a9b745cec61cd0e90389ee37f4853a.zip |
Fix parsing of fixed length IP addresses.
Diffstat (limited to 'src/lua/lua_http.c')
-rw-r--r-- | src/lua/lua_http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index 6e0417a82..23adb6914 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -449,7 +449,7 @@ lua_http_request (lua_State *L) rspamd_session_watcher_push (session); } - if (rspamd_parse_inet_address (&cbd->addr, msg->host->str)) { + if (rspamd_parse_inet_address (&cbd->addr, msg->host->str, 0)) { /* Host is numeric IP, no need to resolve */ if (!lua_http_make_connection (cbd)) { lua_http_maybe_free (cbd); |