Comparison

plugins/mod_s2s/mod_s2s.lua @ 8268:e21d82551e05

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Tue, 26 Sep 2017 17:24:25 +0100
parent 8235:7d9a2c200736
parent 8267:42fad8465537
child 8461:0f05d6535dfa
comparison
equal deleted inserted replaced
8253:3a6f5b0f56f0 8268:e21d82551e05
178 end, -1); 178 end, -1);
179 end 179 end
180 180
181 -- Stream is authorised, and ready for normal stanzas 181 -- Stream is authorised, and ready for normal stanzas
182 function mark_connected(session) 182 function mark_connected(session)
183
183 local sendq = session.sendq; 184 local sendq = session.sendq;
184 185
185 local from, to = session.from_host, session.to_host; 186 local from, to = session.from_host, session.to_host;
186 187
187 session.log("info", "%s s2s connection %s->%s complete", session.direction:gsub("^.", string.upper), from, to); 188 session.log("info", "%s s2s connection %s->%s complete", session.direction:gsub("^.", string.upper), from, to);
209 sendq[i] = nil; 210 sendq[i] = nil;
210 end 211 end
211 session.sendq = nil; 212 session.sendq = nil;
212 end 213 end
213 214
215 session.resolver = nil;
214 session.ip_hosts = nil; 216 session.ip_hosts = nil;
215 session.srv_hosts = nil; 217 session.srv_hosts = nil;
216 end 218 end
217 end 219 end
218 220