Software /
code /
prosody-modules
Diff
mod_audit/mod_audit.lua @ 5728:9bbf5b0673a2
mod_audit: Fix use of util.ip
Yes, weirdly named 'new' function
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 13 Nov 2023 11:36:56 +0100 |
parent | 5351:c35f3c1762b5 |
child | 5729:655f90b149a4 |
line wrap: on
line diff
--- 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);