mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 19:01:56 +00:00
proto/6x4: cast 6to4 adv_interface to string when saving to uci, fixes 6in4.sh not picking up the adv interfaces
This commit is contained in:
@@ -32,6 +32,14 @@ adv_interface.nocreate = true
|
||||
adv_interface.nobridges = true
|
||||
adv_interface.novirtual = true
|
||||
|
||||
function adv_interface.write(self, section, value)
|
||||
if type(value) == "table" then
|
||||
Value.write(self, section, table.concat(value, " "))
|
||||
else
|
||||
Value.write(self, section, value)
|
||||
end
|
||||
end
|
||||
|
||||
function adv_interface.remove(self, section)
|
||||
self:write(section, " ")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user