From 94043027785be37e8a0b7da9e2a89b46b7239a10 Mon Sep 17 00:00:00 2001 From: Zsolt Felfoldi Date: Fri, 7 Jun 2019 16:11:42 +0200 Subject: [PATCH] les: skip meaningless tags --- les/api.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/les/api.go b/les/api.go index 300140c962..104fc5abc4 100644 --- a/les/api.go +++ b/les/api.go @@ -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":