From: Jo-Philipp Wich Date: Wed, 26 Nov 2008 22:57:26 +0000 (+0000) Subject: libs/core/ip: fix host() method X-Git-Tag: 0.9.0~956 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=18b4c1f6b6298ccdbbc4be0f0b01bbec8cad7902;p=oweals%2Fluci.git libs/core/ip: fix host() method --- 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.