From f7f683579f3ca71f2789ffed3bf121f72ab14359 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 7 Aug 2008 12:48:25 +0000 Subject: [PATCH] * luci/libs/ip: fix add() --- libs/core/luasrc/ip.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1