diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-04 14:15:24 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-04 14:15:24 +0000 |
commit | 5836e02b95696a39fc643e9c62ebd9c507634242 (patch) | |
tree | 1c0ad2422ea1bc87e3a70fc7a5f50ccf82059738 /src/lua | |
parent | bcf9f0c5710a010783edef75742beef1192c89fb (diff) | |
download | rspamd-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.c | 2 |
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); |