From 18b4c1f6b6298ccdbbc4be0f0b01bbec8cad7902 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 26 Nov 2008 22:57:26 +0000 Subject: libs/core/ip: fix host() method --- libs/core/luasrc/ip.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs') 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. -- cgit v1.2.3