author | Kim Alvefur <zash@zash.se> |
Mon, 13 Nov 2023 11:36:56 +0100 | |
changeset 5709 | 9bbf5b0673a2 |
parent 5708 | ad5c77793750 |
child 5710 | 655f90b149a4 |
--- a/mod_audit/mod_audit.lua Sun Nov 12 16:37:47 2023 +0100 +++ b/mod_audit/mod_audit.lua Mon Nov 13 11:36:56 2023 +0100 @@ -91,7 +91,7 @@ stanza:text_tag("remote-ip", network or remote_ip); end if attach_location and session.ip then - local remote_ip = ip.new(session.ip); + local remote_ip = ip.new_ip(session.ip); local geoip_country = ip.proto == "IPv6" and geoip6_country or geoip4_country; stanza:tag("location", { country = geoip_country:query_by_addr(remote_ip.normal);