upstream: unset SASL state on RPL_TRYAGAIN

SASL would get stuck otherwise.
This commit is contained in:
Simon Ser 2022-07-04 17:10:40 +02:00
parent 5ef7e07061
commit 689dc8a632

View File

@ -1701,6 +1701,11 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err
downstreamID = dc.id downstreamID = dc.id
} }
if command == "AUTHENTICATE" {
uc.saslClient = nil
uc.saslStarted = false
}
uc.forEachDownstreamByID(downstreamID, func(dc *downstreamConn) { uc.forEachDownstreamByID(downstreamID, func(dc *downstreamConn) {
dc.SendMessage(&irc.Message{ dc.SendMessage(&irc.Message{
Prefix: uc.srv.prefix(), Prefix: uc.srv.prefix(),