diff options
Diffstat (limited to 'dhcp-controller.lua')
-rw-r--r-- | dhcp-controller.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dhcp-controller.lua b/dhcp-controller.lua index 4135364..9857fa4 100644 --- a/dhcp-controller.lua +++ b/dhcp-controller.lua @@ -53,8 +53,8 @@ editnet = function ( self ) end end - if self.clientdata.cmd == "Update" then - tmp = self.cientdata + if self.clientdata.cmd == "update" then + tmp = self.clientdata net = self.model.create_new_net( tmp.name, tmp.defleasetime, tmp.maxleasetime, tmp.gateway, tmp.domainname, tmp.dnssrv1, tmp.dnssrv2, tmp.subnet, tmp.netmask, tmp.leaserangestart, tmp.leaserangeend, tmp.wpad ) @@ -63,7 +63,7 @@ editnet = function ( self ) end net = self.model.subnet_read( self.clientdata.network ); - return ( cfe({ option = option, value = net, error = { value=nil, fields=nil }}) ) + return ( cfe({ option = option, value = net, errcode = { msg="", fields={} }}) ) end createnet = function ( self ) |