Software /
code /
prosody
Changeset
11705:7132acfd287e
mod_s2s: Handle measurement where the local host is unknown
This could happen with Dialback-only connections or others that were
missing the stream 'to' attribute.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 18 Jul 2021 09:17:31 +0200 (2021-07-18) |
parents | 11704:0a8671f32424 |
children | 11706:56feb0cf7052 |
files | plugins/mod_s2s.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_s2s.lua Sun Jul 18 09:08:04 2021 +0200 +++ b/plugins/mod_s2s.lua Sun Jul 18 09:17:31 2021 +0200 @@ -645,7 +645,7 @@ session.sends2s(stream_error); end else - m_closed_connections:with_labels(this_host, session.direction, reason == false and ":remote-choice" or ":local-choice"):add(1) + m_closed_connections:with_labels(this_host or ":unknown", session.direction, reason == false and ":remote-choice" or ":local-choice"):add(1) end session.sends2s("</stream:stream>");