diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-11-26 22:57:26 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-11-26 22:57:26 +0000 |
commit | 18b4c1f6b6298ccdbbc4be0f0b01bbec8cad7902 (patch) | |
tree | dd7a8b0bd1a73687432ed30bcef1bffd9a4628a6 | |
parent | fda52c6fec10b18c79bed23d8fa6972a3147139b (diff) |
libs/core/ip: fix host() method
-rw-r--r-- | libs/core/luasrc/ip.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/core/luasrc/ip.lua b/libs/core/luasrc/ip.lua index c5ebfcab0..590ea76b2 100644 --- a/libs/core/luasrc/ip.lua +++ b/libs/core/luasrc/ip.lua @@ -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. |