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:
25dd9c5
)
* luci/libs/ip: fix add()
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 7 Aug 2008 12:48:25 +0000
(12:48 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 7 Aug 2008 12:48:25 +0000
(12:48 +0000)
libs/core/luasrc/ip.lua
patch
|
blob
|
history
diff --git
a/libs/core/luasrc/ip.lua
b/libs/core/luasrc/ip.lua
index 1edbf8ebeccf545f9039bc1c511c8257a2dd2096..6a1a9e7cfd9f1741f47d1057b4f1adf84cfcd5d5 100644
(file)
--- a/
libs/core/luasrc/ip.lua
+++ b/
libs/core/luasrc/ip.lua
@@
-303,5
+303,5
@@
function cidr.add( self, amount )
end
end
- return __bless({ self[1], data, self
:is4() and 32 and 128
})
+ return __bless({ self[1], data, self
[3]
})
end