Comparison

plugins/mod_tls.lua @ 2604:ed32f7bad620

mod_tls: Fixed an extra :up() in s2s stream feature generation.
author Waqas Hussain <waqas20@gmail.com>
date Fri, 12 Feb 2010 03:14:53 +0500
parent 2602:dff84fdebac0
child 2605:ade70495fe7f
comparison
equal deleted inserted replaced
2603:3a77cc94b85c 2604:ed32f7bad620
50 50
51 module:hook("s2s-stream-features", 51 module:hook("s2s-stream-features",
52 function (data) 52 function (data)
53 local session, features = data.session, data.features; 53 local session, features = data.session, data.features;
54 if session.to_host and session.type ~= "s2sin" and session.conn.starttls then 54 if session.to_host and session.type ~= "s2sin" and session.conn.starttls then
55 features:tag("starttls", starttls_attr):up(); 55 features:tag("starttls", starttls_attr)
56 if secure_s2s_only then 56 if secure_s2s_only then
57 features:tag("required"):up():up(); 57 features:tag("required"):up():up();
58 else 58 else
59 features:up(); 59 features:up();
60 end 60 end