Mercurial > prosody-modules
diff mod_s2s_keepalive/mod_s2s_keepalive.lua @ 4204:a5930a185806
mod_s2s_keepalive: Fix name of timestamp function
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 14 Oct 2020 18:15:12 +0200 |
parents | c4002aae4ad3 |
children | 593fd9e0a435 |
line wrap: on
line diff
--- a/mod_s2s_keepalive/mod_s2s_keepalive.lua Wed Oct 14 18:02:10 2020 +0200 +++ b/mod_s2s_keepalive/mod_s2s_keepalive.lua Wed Oct 14 18:15:12 2020 +0200 @@ -15,7 +15,7 @@ for remote_domain, session in pairs(s2sout) do if session.type ~= "s2sout_unauthed" and (not(keepalive_servers) or keepalive_servers:contains(remote_domain)) then - session.sends2s(st.iq({ to = remote_domain, type = "get", from = host, id = "keepalive:"..dt.timestamp()}) + session.sends2s(st.iq({ to = remote_domain, type = "get", from = host, id = "keepalive:"..dt.datetime()}) :tag("ping", { xmlns = "urn:xmpp:ping" }) ); end @@ -33,7 +33,7 @@ -- ping remotes we only have s2sin from for remote_domain in pairs(ping_hosts) do - module:send(st.iq({ to = remote_domain, type = "get", from = host, id = "keepalive:"..dt.timestamp() }) + module:send(st.iq({ to = remote_domain, type = "get", from = host, id = "keepalive:"..dt.datetime() }) :tag("ping", { xmlns = "urn:xmpp:ping" }) ); end