forked from External/ergo
Only allow valid snomasks to be set
This commit is contained in:
parent
22f9df388d
commit
5811226760
3 changed files with 26 additions and 1 deletions
|
|
@ -27,6 +27,11 @@ func (m *SnoManager) AddMasks(client *Client, masks ...sno.Mask) {
|
|||
defer m.sendListMutex.Unlock()
|
||||
|
||||
for _, mask := range masks {
|
||||
// confirm mask is valid
|
||||
if !sno.ValidMasks[mask] {
|
||||
continue
|
||||
}
|
||||
|
||||
currentClientList := m.sendLists[mask]
|
||||
|
||||
if currentClientList == nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue