Changeset

5661:f226a0d23e85

mod_s2s: Set s2s_session.ip
author Kim Alvefur <zash@zash.se>
date Sun, 09 Jun 2013 12:54:10 +0200
parents 5660:df077bc8f019
children 5662:685d46ec352b
files plugins/mod_s2s/mod_s2s.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua	Sat Jun 08 18:08:18 2013 +0100
+++ b/plugins/mod_s2s/mod_s2s.lua	Sun Jun 09 12:54:10 2013 +0200
@@ -590,6 +590,7 @@
 	else -- Outgoing session connected
 		session:open_stream(session.from_host, session.to_host);
 	end
+	session.ip = conn:ip();
 end
 
 function listener.onincoming(conn, data)