les: skip meaningless tags

This commit is contained in:
Zsolt Felfoldi 2019-06-07 16:11:42 +02:00
parent 106af36aa9
commit 9404302778

View file

@ -286,7 +286,10 @@ type priorityClientInfo struct {
// matchTags checks whether the client matches the given tags
func (c *priorityClientInfo) matchTags(tags []string) bool {
for _, tag := range tags {
if len(tag) > 0 && tag[0] == '$' {
if len(tag) == 0 {
continue
}
if tag[0] == '$' {
switch tag {
case "$all":
case "$connected":