Software /
code /
prosody
Comparison
plugins/mod_s2s/mod_s2s.lua @ 6426:e5945fb5b71f
mod_s2s: Close s2s connections that can not proceed due to mod_dialback not being present
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 23 Sep 2014 19:41:10 +0200 |
parent | 6403:166d1bd8fc38 |
child | 6473:7c8f58d2b331 |
comparison
equal
deleted
inserted
replaced
6425:436a670a0189 | 6426:e5945fb5b71f |
---|---|
152 if session.type == "s2sout" then | 152 if session.type == "s2sout" then |
153 -- Stream is authenticated and we are seem to be done with feature negotiation, | 153 -- Stream is authenticated and we are seem to be done with feature negotiation, |
154 -- so the stream is ready for stanzas. RFC 6120 Section 4.3 | 154 -- so the stream is ready for stanzas. RFC 6120 Section 4.3 |
155 mark_connected(session); | 155 mark_connected(session); |
156 return true; | 156 return true; |
157 elseif not session.dialback_verifying then | |
158 session.log("warn", "No SASL EXTERNAL offer and Dialback doesn't seem to be enabled, giving up"); | |
159 session:close(); | |
160 return false; | |
157 end | 161 end |
158 end, -1); | 162 end, -1); |
159 end | 163 end |
160 | 164 |
161 -- Stream is authorised, and ready for normal stanzas | 165 -- Stream is authorised, and ready for normal stanzas |