libs/core/ip: fix host() method
This commit is contained in:
parent
fda52c6fec
commit
18b4c1f6b6
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue