From ce359d4ab0bac7d79934f76353062b0f470e77e5 Mon Sep 17 00:00:00 2001 From: Jan-Tarek Butt <tarek@ring0.de> Date: Mon, 17 Apr 2017 22:39:51 +0200 Subject: [PATCH] hoodselector: get location fix nil returned by uci fault #100 --- hoodselector/luasrc/usr/sbin/hoodselector | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hoodselector/luasrc/usr/sbin/hoodselector b/hoodselector/luasrc/usr/sbin/hoodselector index 87e1974..d722b41 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 -- GitLab