guardato il sorgente al volo della gui DEV.
local staticDns = uci_helper.get_from_uci({ config = "network", sectionname = interface, option = "dns"})
local intfValue = interface_status.get(interface)
local active = intfValue and intfValue['dns-server']
local inactive = intfValue and intfValue['inactive'] and intfValue['inactive']['dns-server']
if type(active) == "table" and #active ~= 0 then
v = active
elseif type(inactive) == "table" and #inactive ~= 0 then
v = inactive
end
servers = staticDns ~= "" and table.concat(staticDns, ",") or ""
for i, server in ipairs(v) do
modificare da cosμ
servers = staticDns ~= "" and table.concat(staticDns, ",") or ""
a cosμ
servers = staticDns ~= "" and staticDns or ""
Ovviamente poi se si vogliono inserire piω DNS dovrebbe bastare concatenarli direttamente nel file di configurazione es. (8.8.8.8,8.8.8.4)
EDIT: fammi sapere se qualcosa non ti torna e ti ringrazio sinceramente per tutto il tempo che dedichi a questo progetto.