diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_s2s.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_s2s.lua b/plugins/mod_s2s.lua index 300a747e..ee65ba70 100644 --- a/plugins/mod_s2s.lua +++ b/plugins/mod_s2s.lua @@ -230,6 +230,10 @@ function route_to_new_session(event) resolver; }); end + + local pre_event = { session = host_session; resolver = resolver }; + module:context(from_host):fire_event("s2sout-pre-connect", pre_event); + resolver = pre_event.resolver; connect(resolver, listener, nil, { session = host_session }); m_initiated_connections:with_labels(from_host):add(1) return true; |