X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fniu%2Fluasrc%2Fmodel%2Fcbi%2Fniu%2Fnetwork%2Fddns1.lua;h=5fb74ac2e7a3af87ad7e25e39687e6c5b01af618;hp=497a9c02566ee39d90bf16a9b9b4ba693c861413;hb=2bfa17e6f415a5d99a2f65dc37e4b8ceac1c3b6a;hpb=319f820388d2a6e634053b7e11104e8755d4d498 diff --git a/modules/niu/luasrc/model/cbi/niu/network/ddns1.lua b/modules/niu/luasrc/model/cbi/niu/network/ddns1.lua index 497a9c025..5fb74ac2e 100644 --- a/modules/niu/luasrc/model/cbi/niu/network/ddns1.lua +++ b/modules/niu/luasrc/model/cbi/niu/network/ddns1.lua @@ -40,6 +40,13 @@ pw.password = true local dom = s:taboption("general", Value, "domain", translate("Hostname")) local current = s:taboption("general", DummyValue, "_current", "Current IP-Address") + +function current.render(self, section, ...) + if dom:cfgvalue(section) then + return DummyValue.render(self, section, ...) + end +end + function current.value(self, section) local dns = nxo.getaddrinfo(dom:cfgvalue(section)) if dns then