summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--libs/core/luasrc/ip.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/core/luasrc/ip.lua b/libs/core/luasrc/ip.lua
index 1edbf8ebec..6a1a9e7cfd 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