libs/core/ip: fix host() method

This commit is contained in:
Jo-Philipp Wich 2008-11-26 22:57:26 +00:00
parent fda52c6fec
commit 18b4c1f6b6

View 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.