aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-03-04 14:15:24 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-03-04 14:15:24 +0000
commit5836e02b95696a39fc643e9c62ebd9c507634242 (patch)
tree1c0ad2422ea1bc87e3a70fc7a5f50ccf82059738 /src/lua
parentbcf9f0c5710a010783edef75742beef1192c89fb (diff)
downloadrspamd-5836e02b95696a39fc643e9c62ebd9c507634242.tar.gz
rspamd-5836e02b95696a39fc643e9c62ebd9c507634242.zip
[Project] Allow to hash and compare inet addresses considering port
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_ip.c b/src/lua/lua_ip.c
index 5ee4a39b4..7f24f7712 100644
--- a/src/lua/lua_ip.c
+++ b/src/lua/lua_ip.c
@@ -490,7 +490,7 @@ lua_ip_equal (lua_State *L)
gboolean res = FALSE;
if (ip1 && ip2 && ip1->addr && ip2->addr) {
- res = rspamd_inet_address_compare (ip1->addr, ip2->addr);
+ res = rspamd_inet_address_compare (ip1->addr, ip2->addr, TRUE);
}
lua_pushboolean (L, res);