Anonymous user
Module:IP: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
actually, I like your version better - it's simple, it sidesteps the accuracy problem, and it probably isn't too much more overhead
(restore MAX_ITERATIONS that I missed) |
(actually, I like your version better - it's simple, it sidesteps the accuracy problem, and it probably isn't too much more overhead) |
||
Line 11:
local V4 = 'IPv4'
local V6 = 'IPv6'
--------------------------------------------------------------------------------
Line 501 ⟶ 496:
function obj:walk()
local
local current = self:getPrefix()
local highest = self:getHighestIP()
return function ()
return current
end
if
current = current:getNextIP()
return current
|