lib/wmap/site_tracker.rb
# Quick validation check on an IP is already part of the site store
Quick validation check on an IP is already part of the site store
Quick validation check on an IP is already part of the site store
def site_ip_known?(ip)
		ip=ip.chomp.strip
		known=false
		if is_ip?(ip)
			@known_sites.keys.map do |site|
				if @known_sites[site]['ip']==ip
					return true
				end
			end
		end
		myDis=nil
		return known
	rescue => ee
		puts "Exception on method #{__method__}: #{ee}"
		return false
	end
def site_ip_known? ( ip ) ip = ip . chomp . strip known = false if is_ip? ( ip ) @known_sites . keys . map do | site | if @known_sites [ site ] [ 'ip' ] == ip return true end end end myDis = nil return known rescue => ee puts "Exception on method #{__method__}: #{ee}" return false end
Quick validation check on an IP is already part of the site store
Quick validation check on an IP is already part of the site store
ip
<not_specific>