Changeset 742 in code for trunk/upstream.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/upstream.go

    r739 r742  
    20762076
    20772077func (uc *upstreamConn) updateMonitor() {
     2078        if _, ok := uc.isupport["MONITOR"]; !ok {
     2079                return
     2080        }
     2081
    20782082        add := make(map[string]struct{})
    20792083        var addList []string
Note: See TracChangeset for help on using the changeset viewer.