mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-19 08:46:38 +00:00
limit differences to 5 bytes - fixed
This commit is contained in:
@@ -511,7 +511,7 @@ func (c *Controller) compareAndSaveNetworkMaps(ctx context.Context, accountId, p
|
||||
return
|
||||
}
|
||||
|
||||
if len(expBytes) == len(legacyBytes) || math.Abs(float64(len(expBytes)-len(legacyBytes))) > 5 {
|
||||
if len(expBytes) == len(legacyBytes) || math.Abs(float64(len(expBytes)-len(legacyBytes))) < 5 {
|
||||
log.WithContext(ctx).Debugf("network maps are equal for peer %s in account %s (size: %d bytes)", peerId, accountId, len(expBytes))
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user