mirror of
https://github.com/safing/portmaster
synced 2025-09-02 10:39:22 +00:00
Improve empty list matching
This commit is contained in:
parent
c2cac45d83
commit
c018e2397f
1 changed files with 4 additions and 0 deletions
|
@ -467,6 +467,10 @@ func (e *Entity) LoadLists(ctx context.Context) {
|
|||
// of source IDs and updates various entity properties
|
||||
// like BlockedByLists, ListOccurences and BlockedEntitites.
|
||||
func (e *Entity) MatchLists(lists []string) bool {
|
||||
if len(lists) == 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
e.BlockedByLists = nil
|
||||
e.BlockedEntities = nil
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue