aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s/mod_s2s.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-06-09 12:54:10 +0200
committerKim Alvefur <zash@zash.se>2013-06-09 12:54:10 +0200
commita6d4b7ca4d2b039273c693d8c08844ef02b744c5 (patch)
treef6939be558d721a807c6f71d1eb3dd9eb241a399 /plugins/mod_s2s/mod_s2s.lua
parent38e6533cbd5ba91acc581b3f0821a5c878d3d1d2 (diff)
downloadprosody-a6d4b7ca4d2b039273c693d8c08844ef02b744c5.tar.gz
prosody-a6d4b7ca4d2b039273c693d8c08844ef02b744c5.zip
mod_s2s: Set s2s_session.ip
Diffstat (limited to 'plugins/mod_s2s/mod_s2s.lua')
-rw-r--r--plugins/mod_s2s/mod_s2s.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua
index 309940cf..bce617ca 100644
--- a/plugins/mod_s2s/mod_s2s.lua
+++ b/plugins/mod_s2s/mod_s2s.lua
@@ -590,6 +590,7 @@ function listener.onconnect(conn)
else -- Outgoing session connected
session:open_stream(session.from_host, session.to_host);
end
+ session.ip = conn:ip();
end
function listener.onincoming(conn, data)