diff --git a/hoodselector/luasrc/usr/sbin/hoodselector b/hoodselector/luasrc/usr/sbin/hoodselector index 87e19748799abbf992fc994724bb69f9403a752e..d722b41ffacf06f58dfea7e602cc6b47899fd381 100755 --- a/hoodselector/luasrc/usr/sbin/hoodselector +++ b/hoodselector/luasrc/usr/sbin/hoodselector @@ -925,7 +925,7 @@ local radios = getWifiDevices() if directVPN() then io.stderr:write('VPN connection found.\n') local geo = getGeolocation() - if geo.lat ~= 0 and geo.lon ~= 0 then + if geo.lat ~= nil and geo.lon ~= nil then io.stderr:write('Position found.\n') local geoHood = getHoodByGeo(jhood, geo) if geoHood ~= nil then