* luci/libs/ip: fix add()
[project/luci.git] / 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