Comparison

plugins/mod_tls.lua @ 2854:ce8ce431c2b8

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 2853:91143b35a755
child 2872:cdc292d201fc
comparison
equal deleted inserted replaced
2853:91143b35a755 2854:ce8ce431c2b8
66 66
67 module:hook("s2s-stream-features", 67 module:hook("s2s-stream-features",
68 function (data) 68 function (data)
69 local session, features = data.session, data.features; 69 local session, features = data.session, data.features;
70 if session.to_host and session.conn.starttls then 70 if session.to_host and session.conn.starttls then
71 features:tag("starttls", starttls_attr):up(); 71 features:tag("starttls", starttls_attr);
72 if secure_s2s_only then 72 if secure_s2s_only then
73 features:tag("required"):up():up(); 73 features:tag("required"):up():up();
74 else 74 else
75 features:up(); 75 features:up();
76 end 76 end