* luci/libs/ip: fix add()
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 7 Aug 2008 12:48:25 +0000 (12:48 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 7 Aug 2008 12:48:25 +0000 (12:48 +0000)
libs/core/luasrc/ip.lua

index 1edbf8ebeccf545f9039bc1c511c8257a2dd2096..6a1a9e7cfd9f1741f47d1057b4f1adf84cfcd5d5 100644 (file)
@@ -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