mirror of
https://github.com/juanfont/headscale.git
synced 2025-06-19 01:18:37 +02:00
Compute filterChanged
in v2 policy correctly
This commit is contained in:
parent
2073a84e31
commit
c98692a26b
@ -68,7 +68,7 @@ func (pm *PolicyManager) updateLocked() (bool, error) {
|
||||
}
|
||||
|
||||
filterHash := deephash.Hash(&filter)
|
||||
filterChanged := filterHash == pm.filterHash
|
||||
filterChanged := filterHash != pm.filterHash
|
||||
pm.filter = filter
|
||||
pm.filterHash = filterHash
|
||||
if filterChanged {
|
||||
|
Loading…
Reference in New Issue
Block a user