projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fda52c6
)
libs/core/ip: fix host() method
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 26 Nov 2008 22:57:26 +0000
(22:57 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 26 Nov 2008 22:57:26 +0000
(22:57 +0000)
libs/core/luasrc/ip.lua
patch
|
blob
|
history
diff --git
a/libs/core/luasrc/ip.lua
b/libs/core/luasrc/ip.lua
index c5ebfcab0d876c1e4d22529e3c6ae8beb289869d..590ea76b2f5b60209aa5721e9929b69f648733e3 100644
(file)
--- 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.