diff options
-rw-r--r-- | libs/core/luasrc/ip.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/core/luasrc/ip.lua b/libs/core/luasrc/ip.lua index e6de08f1b..2fe71297d 100644 --- a/libs/core/luasrc/ip.lua +++ b/libs/core/luasrc/ip.lua @@ -333,7 +333,7 @@ function cidr.network( self, bits ) if #data < #self[2] then table.insert( data, bit.band( self[2][1+#data], __mask16(bits) ) ) - for i = #data, #self[2] do + for i = #data + 1, #self[2] do table.insert( data, 0 ) end end |