From 168beae793bea06c0ade4de57b59f443aee52766 Mon Sep 17 00:00:00 2001 From: Jan-Tarek Butt Date: Sat, 4 Aug 2018 11:32:10 +0200 Subject: [PATCH] gluon-hoodselector-add-VPN-MODE: remove nixio dependency from hoodselector util --- .../luasrc/usr/lib/lua/hoodselector/util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua b/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua index 0be6a0c1..8f928759 100644 --- a/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua +++ b/package/gluon-hoodselector/luasrc/usr/lib/lua/hoodselector/util.lua @@ -1,4 +1,4 @@ -local fs = require 'nixio.fs' +local util = require 'gluon.util' local json = require 'jsonc' local uci = require('simple-uci').cursor() local site = require 'gluon.site' @@ -24,7 +24,7 @@ end function M.get_domains() local list = {} - for domain_path in fs.glob('/lib/gluon/domains/*.json') do + for _, domain_path in ipairs(util.glob('/lib/gluon/domains/*.json')) do table.insert(list, { domain_code = domain_path:match('([^/]+)%.json$'), domain = assert(json.load(domain_path)),