Changeset 742 in code for trunk/downstream.go


Ignore:
Timestamp:
Dec 4, 2021, 6:29:39 PM (4 years ago)
Author:
contact
Message:

Avoid forwarding MONITOR requests if upstream doesn't support it

Clients aren't supposed to do this, but in case they do, let's
send them an error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r729 r742  
    24742474                        return newUnknownCommandError(msg.Command)
    24752475                }
     2476                if _, ok := uc.isupport["MONITOR"]; !ok {
     2477                        return newUnknownCommandError(msg.Command)
     2478                }
    24762479
    24772480                var subcommand string
Note: See TracChangeset for help on using the changeset viewer.