aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit4a611afb8ab3071d35cd2bd567fe677cd6feafd9 (patch)
treef6939be558d721a807c6f71d1eb3dd9eb241a399 /plugins
parentdb42f4e220c074f519e59de7f6521f0923907749 (diff)
downloadprosody-4a611afb8ab3071d35cd2bd567fe677cd6feafd9.tar.gz
prosody-4a611afb8ab3071d35cd2bd567fe677cd6feafd9.zip
mod_s2s: Set s2s_session.ip
Diffstat (limited to 'plugins')
-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)