* luci/libs/ip: fix add()

This commit is contained in:
Jo-Philipp Wich 2008-08-07 12:48:25 +00:00
parent 25dd9c5f9b
commit f7f683579f

View 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