libs/core/ip: fix host() method
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 26 Nov 2008 22:57:26 +0000 (22:57 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 26 Nov 2008 22:57:26 +0000 (22:57 +0000)
libs/core/luasrc/ip.lua

index c5ebfcab0d876c1e4d22529e3c6ae8beb289869d..590ea76b2f5b60209aa5721e9929b69f648733e3 100644 (file)
@@ -481,7 +481,7 @@ end
 -- @see                        cidr.broadcast
 -- @see                        cidr.mask
 function cidr.host( self )
-       return __bless({ self[1], data, __maxlen(self[1]) })
+       return __bless({ self[1], self[2], __maxlen(self[1]) })
 end
 
 --- Return a corresponding CIDR representing the netmask of this instance.