1
0
Fork 0
forked from External/ergo
Don't advertise sasl=EXTERNAL to clients who aren't connected over native TLS,
since even if they have TLS configured locally and they enable a client
certificate, that information will be discarded by the reverse proxy.
This commit is contained in:
Shivaram Lingamneni 2022-05-06 13:09:09 -04:00
parent a13235880c
commit 05eaf3a0d8
3 changed files with 19 additions and 2 deletions

View file

@ -591,7 +591,11 @@ func capHandler(server *Server, client *Client, msg ircmsg.Message, rb *Response
rb.session.capVersion = newVersion
}
}
sendCapLines(supportedCaps, config.Server.capValues)
capValues := config.Server.capValues
if !rb.session.IsCertFPCapable() {
capValues = config.Server.capValuesNoExternal
}
sendCapLines(supportedCaps, capValues)
case "LIST":
// values not sent on LIST