Module:IP: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
use strings for protocol version numbers
(tweak IPRange structure)
(use strings for protocol version numbers)
Line 16:
 
local normalizedIP = ip
local version = 4'IPv4'
 
function obj:getIP()
Line 31:
 
function obj:isIPv4()
return version == 4'IPv4'
end
 
function obj:isIPv6()
return version == 6'IPv6'
end
 
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu