luci-portconfig: fix dns
This commit is contained in:
parent
d90b1d66fd
commit
3652628e96
@ -116,7 +116,7 @@ function f.handle(self, state, data)
|
|||||||
uci:commit("network")
|
uci:commit("network")
|
||||||
|
|
||||||
if dns then
|
if dns then
|
||||||
if data.dns then
|
if #data.dns > 0 then
|
||||||
uci:set("gluon-wan-dnsmasq", dns, "server", data.dns)
|
uci:set("gluon-wan-dnsmasq", dns, "server", data.dns)
|
||||||
else
|
else
|
||||||
uci:delete("gluon-wan-dnsmasq", dns, "server")
|
uci:delete("gluon-wan-dnsmasq", dns, "server")
|
||||||
|
Loading…
Reference in New Issue
Block a user