Software /
code /
prosody-modules
Changeset
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 |
parents | 5727:ad5c77793750 |
children | 5729:655f90b149a4 |
files | mod_audit/mod_audit.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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);