diff --git a/daemon/rule/operator.go b/daemon/rule/operator.go index 503e1ebd..45cbc341 100644 --- a/daemon/rule/operator.go +++ b/daemon/rule/operator.go @@ -233,6 +233,9 @@ func (o *Operator) reListCmp(v interface{}) bool { if o.Sensitive == false { dstHost = strings.ToLower(dstHost) } + o.RLock() + defer o.RUnlock() + for file, re := range o.lists { r := re.(*regexp.Regexp) if r.MatchString(dstHost) {