1
0
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:
Aras Ergus 2025-04-07 16:32:13 +02:00
parent 2073a84e31
commit c98692a26b
No known key found for this signature in database
GPG Key ID: 06334F046D945E11

View File

@ -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 {