Comparison

plugins/mod_s2s/mod_s2s.lua @ 5661:f226a0d23e85

mod_s2s: Set s2s_session.ip
author Kim Alvefur <zash@zash.se>
date Sun, 09 Jun 2013 12:54:10 +0200
parent 5638:c5b7f4858014
child 5669:9345c161481f
comparison
equal deleted inserted replaced
5660:df077bc8f019 5661:f226a0d23e85
588 588
589 initialize_session(session); 589 initialize_session(session);
590 else -- Outgoing session connected 590 else -- Outgoing session connected
591 session:open_stream(session.from_host, session.to_host); 591 session:open_stream(session.from_host, session.to_host);
592 end 592 end
593 session.ip = conn:ip();
593 end 594 end
594 595
595 function listener.onincoming(conn, data) 596 function listener.onincoming(conn, data)
596 local session = sessions[conn]; 597 local session = sessions[conn];
597 if session then 598 if session then