Module:IP: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
add __concat metamethod for Subnet
(validate ip in subnet:containsIP(ip) and accept a string, like ip:isInSubnet(subnet))
(add __concat metamethod for Subnet)
Line 494:
__eq = function (self, obj)
return self:getCIDR() == obj:getCIDR()
end,
__concat = function (self, obj)
return tostring(self) .. tostring(obj)
end,
__tostring = function (self)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu