* 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 1edbf8e..6a1a9e7 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