downstream: set CLIENTTAGDENY=* when upstream is missing message-tags

This commit is contained in:
Simon Ser 2023-03-28 18:48:47 +02:00
parent f2b6d0864b
commit be6cc27981
1 changed files with 6 additions and 0 deletions

View File

@ -1473,6 +1473,12 @@ func (dc *downstreamConn) welcome(ctx context.Context) error {
}
if uc := dc.upstream(); uc != nil {
// If upstream doesn't support message-tags, indicate that we'll drop
// all of them
if _, ok := uc.isupport["CLIENTTAGDENY"]; !ok && !uc.caps.IsEnabled("message-tags") {
isupport = append(isupport, "CLIENTTAGDENY=*")
}
for k := range passthroughIsupport {
v, ok := uc.isupport[k]
if !ok {