Mercurial > prosody-hg
comparison plugins/mod_s2s.lua @ 13886:cbb8dc92daa9 13.0
mod_s2s: Fix log to use formatting instead of concatenation (fixes #1461)
Somehow this escaped semgrep, probably because the (x or y)() syntax.
Thanks Ge0rG
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 24 May 2025 15:53:46 +0200 |
| parents | e128ed4494f3 |
| children | 8e6baa66f828 4a288b082f42 |
comparison
equal
deleted
inserted
replaced
| 13876:3609d8fcad00 | 13886:cbb8dc92daa9 |
|---|---|
| 190 local host = hosts[from_host].s2sout[to_host]; | 190 local host = hosts[from_host].s2sout[to_host]; |
| 191 if not host then return end | 191 if not host then return end |
| 192 | 192 |
| 193 -- We have a connection to this host already | 193 -- We have a connection to this host already |
| 194 if host.type == "s2sout_unauthed" and (stanza.name ~= "db:verify" or not host.dialback_key) then | 194 if host.type == "s2sout_unauthed" and (stanza.name ~= "db:verify" or not host.dialback_key) then |
| 195 (host.log or log)("debug", "trying to send over unauthed s2sout to "..to_host); | 195 (host.log or log)("debug", "trying to send over unauthed s2sout to %s", to_host); |
| 196 | 196 |
| 197 -- Queue stanza until we are able to send it | 197 -- Queue stanza until we are able to send it |
| 198 if not host.sendq then | 198 if not host.sendq then |
| 199 -- luacheck: ignore 122 | 199 -- luacheck: ignore 122 |
| 200 host.sendq = queue.new(sendq_size); | 200 host.sendq = queue.new(sendq_size); |
