From 02a2b10eb7f8fb5258c06f45e9bdcb5ce6e809cb Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 21 Oct 2021 17:51:56 +0200 Subject: 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. --- plugins/mod_s2s.lua | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3