diff options
Diffstat (limited to 'modules/niu/luasrc/model/cbi')
-rw-r--r-- | modules/niu/luasrc/model/cbi/niu/network/ddns1.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/niu/luasrc/model/cbi/niu/network/ddns1.lua b/modules/niu/luasrc/model/cbi/niu/network/ddns1.lua index 497a9c0256..5fb74ac2e7 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 |