forked from External/ergo
DEFCON 4 and lower should require SASL from Tor users
This commit is contained in:
parent
9cf854405d
commit
534939c342
2 changed files with 3 additions and 2 deletions
|
|
@ -596,7 +596,7 @@ func (client *Client) isAuthorized(server *Server, config *Config, session *Sess
|
|||
return authFailPass
|
||||
}
|
||||
// Tor connections may be required to authenticate with SASL
|
||||
if session.isTor && config.Server.TorListeners.RequireSasl && !saslSent {
|
||||
if session.isTor && !saslSent && (config.Server.TorListeners.RequireSasl || server.Defcon() <= 4) {
|
||||
return authFailTorSaslRequired
|
||||
}
|
||||
// finally, enforce require-sasl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue