mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
pass the require-sasl message through from the script
This commit is contained in:
parent
7f13ec14cc
commit
f3cdf8442a
3 changed files with 13 additions and 2 deletions
|
|
@ -82,6 +82,9 @@ func (client *Client) ApplyProxiedIP(session *Session, proxiedIP net.IP, tls boo
|
|||
return errBanned, banMsg
|
||||
}
|
||||
client.requireSASL = requireSASL
|
||||
if requireSASL {
|
||||
client.requireSASLMessage = banMsg
|
||||
}
|
||||
// successfully added a limiter entry for the proxied IP;
|
||||
// remove the entry for the real IP if applicable (#197)
|
||||
client.server.connectionLimiter.RemoveClient(session.realIP)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue