gluon-core: use new gluon.site library to avoid 'or {}' syntax
This commit is contained in:
parent
57adb49de2
commit
1d6e6726d7
@ -1,10 +1,10 @@
|
||||
#!/usr/bin/lua
|
||||
|
||||
local site = require 'gluon.site_config'
|
||||
local site = require 'gluon.site'
|
||||
local uci = require('simple-uci').cursor()
|
||||
|
||||
local dns = site.dns or {}
|
||||
local next_node = site.next_node or {}
|
||||
local dns = site.dns({})
|
||||
local next_node = site.next_node({})
|
||||
|
||||
local dnsmasq = uci:get_first("dhcp", "dnsmasq")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user