NIU:
[project/luci.git] / modules / niu / luasrc / model / cbi / niu / network / ddns1.lua
index 497a9c0..5fb74ac 100644 (file)
@@ -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")
 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
 function current.value(self, section)
        local dns = nxo.getaddrinfo(dom:cfgvalue(section))
        if dns then