Software /
code /
prosody
Changeset
11859:14cf34d35c30
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 21 Oct 2021 17:51:56 +0200 |
parents | 11858:2bcd84123eba |
children | 11860:4150bd80101c |
files | plugins/mod_s2s.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_s2s.lua Thu Oct 21 15:59:16 2021 +0200 +++ b/plugins/mod_s2s.lua Thu Oct 21 17:51:56 2021 +0200 @@ -623,6 +623,7 @@ 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;