mod_tls: Ban TLS after auth, not before.

vault/0.11
Waqas Hussain 16 years ago
parent 3ca0b28b54
commit b4b0f22159
  1. 4
      plugins/mod_tls.lua

@ -26,9 +26,9 @@ local host = hosts[module.host];
local function can_do_tls(session)
if session.type == "c2s_unauthed" then
return session.username and session.conn.starttls and host.ssl_ctx_in;
return session.conn.starttls and host.ssl_ctx_in;
elseif session.type == "s2sin_unauthed" then
return session.to_host and session.conn.starttls and host.ssl_ctx_in;
return session.conn.starttls and host.ssl_ctx_in;
end
return false;
end

Loading…
Cancel
Save