equal
deleted
inserted
replaced
32 if session.conn.starttls then |
32 if session.conn.starttls then |
33 session.sends2s(st.stanza("proceed", { xmlns = xmlns_starttls })); |
33 session.sends2s(st.stanza("proceed", { xmlns = xmlns_starttls })); |
34 session:reset_stream(); |
34 session:reset_stream(); |
35 session.conn.starttls(); |
35 session.conn.starttls(); |
36 session.log("info", "TLS negotiation started for incoming s2s..."); |
36 session.log("info", "TLS negotiation started for incoming s2s..."); |
|
37 session.secure = false; |
37 else |
38 else |
38 -- FIXME: What reply? |
39 -- FIXME: What reply? |
39 session.log("warn", "Attempt to start TLS, but TLS is not available on this s2s connection"); |
40 session.log("warn", "Attempt to start TLS, but TLS is not available on this s2s connection"); |
40 end |
41 end |
41 end); |
42 end); |