Comparison

plugins/mod_s2s/mod_s2s.lua @ 7865:a8cc495a65dc

mod_s2s: Clarify that it is stream features that can't be offered (here too)
author Kim Alvefur <zash@zash.se>
date Wed, 25 Jan 2017 11:13:40 +0100
parent 7679:589e27b47d56
child 7866:b6d99132d7dc
comparison
equal deleted inserted replaced
7864:7ece186a44d3 7865:a8cc495a65dc
364 364
365 if ( session.type == "s2sin" or session.type == "s2sout" ) or features.tags[1] then 365 if ( session.type == "s2sin" or session.type == "s2sout" ) or features.tags[1] then
366 log("debug", "Sending stream features: %s", tostring(features)); 366 log("debug", "Sending stream features: %s", tostring(features));
367 session.sends2s(features); 367 session.sends2s(features);
368 else 368 else
369 (session.log or log)("warn", "No features to offer, giving up"); 369 (session.log or log)("warn", "No stream features to offer, giving up");
370 session:close({ condition = "undefined-condition", text = "No features to offer" }); 370 session:close({ condition = "undefined-condition", text = "No stream features to offer" });
371 end 371 end
372 end 372 end
373 elseif session.direction == "outgoing" then 373 elseif session.direction == "outgoing" then
374 session.notopen = nil; 374 session.notopen = nil;
375 if not attr.id then 375 if not attr.id then