mirror of
https://github.com/safing/portmaster
synced 2025-09-14 08:49:40 +00:00
Fix location ordering
This commit is contained in:
parent
b3f3d0ef7c
commit
ec48c17110
1 changed files with 1 additions and 0 deletions
|
@ -120,6 +120,7 @@ func (dl *DeviceLocation) IsMoreAccurateThan(other *DeviceLocation) bool {
|
|||
other.Location.Coordinates.Latitude == 0 &&
|
||||
other.Location.Coordinates.Longitude == 0:
|
||||
// Having Coordinates is better than having none.
|
||||
return true
|
||||
case dl.Location.Coordinates.AccuracyRadius < other.Location.Coordinates.AccuracyRadius:
|
||||
// Higher geo accuracy is better.
|
||||
return true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue