diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-08-07 12:48:25 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-08-07 12:48:25 +0000 |
commit | f7f683579f3ca71f2789ffed3bf121f72ab14359 (patch) | |
tree | 6459fdca2573ecaae83eb0bc9cdb5b4a83383aaa /libs/core | |
parent | 25dd9c5f9b4cb948155ef0d55edd66a239ba7118 (diff) |
* luci/libs/ip: fix add()
Diffstat (limited to 'libs/core')
-rw-r--r-- | libs/core/luasrc/ip.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/core/luasrc/ip.lua b/libs/core/luasrc/ip.lua index 1edbf8ebe..6a1a9e7cf 100644 --- 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 |