lib/wmap.rb
# Check if the IP is within the range of the known CIDR blocks
Check if the IP is within the range of the known CIDR blocks
Check if the IP is within the range of the known CIDR blocks
def ip_trusted?(ip)
		tracker=Wmap::CidrTracker.new
    if @data_dir
      tracker.data_dir=@data_dir
      tracker.cidr_seeds=tracker.data_dir + "/" + "cidrs"
      tracker.load_cidr_blks_from_file(tracker.cidr_seeds)
    end
		tracker.ip_trusted?(ip)
	end
def ip_trusted? ( ip ) tracker = Wmap :: CidrTracker . new if @data_dir tracker . data_dir = @data_dir tracker . cidr_seeds = tracker . data_dir + "/" + "cidrs" tracker . load_cidr_blks_from_file ( tracker . cidr_seeds ) end tracker . ip_trusted? ( ip ) end
Check if the IP is within the range of the known CIDR blocks
Check if the IP is within the range of the known CIDR blocks
ip
<not_specific>