mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 14:17:37 +03:00
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.
This commit is contained in:
parent
2408c299f0
commit
02a2b10eb7
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue