# HG changeset patch # User Kim Alvefur # Date 1634831516 -7200 # Node ID 14cf34d35c30d5be2df7c4bde2108f3f26171e7d # Parent 2bcd84123eba14a36eb33e2bc80ff2a6643745e1 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. diff -r 2bcd84123eba -r 14cf34d35c30 plugins/mod_s2s.lua --- 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;