Module:IP: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
check for nil base IPs in makeSubnet
(tweak an error message and a comment)
(check for nil base IPs in makeSubnet)
Line 611:
if n and n <= bits then
local base = RawIP.newFromIP(lhs)
if base then
local prefix = base:getPrefix(n)
if local baseprefix == prefix thenbase:getPrefix(n)
returnif base == makeSubnetFromRaw(prefix, n)then
return makeSubnetFromRaw(prefix, n)
end
end
end
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu