diff options
author | Kim Alvefur <zash@zash.se> | 2021-10-21 17:51:56 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-10-21 17:51:56 +0200 |
commit | 02a2b10eb7f8fb5258c06f45e9bdcb5ce6e809cb (patch) | |
tree | aeb34198a7517e193b8fae242e4bf6e0144d36ff /plugins | |
parent | 2408c299f020c5132edfc78a3566de83aa729f91 (diff) | |
download | prosody-02a2b10eb7f8fb5258c06f45e9bdcb5ce6e809cb.tar.gz prosody-02a2b10eb7f8fb5258c06f45e9bdcb5ce6e809cb.zip |
mod_s2s: Don't pass unknown hostnames as stats label
Labels are supposed to be fixed sets of things, so defined hosts are
okay, but not unknown hosts.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_s2s.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_s2s.lua b/plugins/mod_s2s.lua index d9946fae..71dcd358 100644 --- a/plugins/mod_s2s.lua +++ b/plugins/mod_s2s.lua @@ -623,6 +623,7 @@ local function session_close(session, reason, remote_reason, bounce_reason) end local this_host = session.direction == "outgoing" and session.from_host or session.to_host + if not hosts[this_host] then this_host = ":unknown"; end if reason then -- nil == no err, initiated by us, false == initiated by remote local stream_error; |