Software /
code /
prosody
Diff
plugins/mod_s2s.lua @ 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 |
parent | 11775:af9c7f3f4735 |
child | 11867:bb20cfd4884f |
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;