lib/wmap/host_tracker.rb
# determine if host is part of trusted (known) root domains
determine if host is part of trusted (known) root domains
determine if host is part of trusted ( known ) root domains
def is_trusted?(host)
		puts "Determin if host #{host} is part of trusted root domains" if @verbose
		root=get_domain_root(host)
		puts "Domain root: #{root}" if @verbose
		domain_tracker=Wmap::DomainTracker.instance
		domain_tracker.data_dir=@data_dir
		domain_tracker.domains_file = domain_tracker.data_dir + "/" + "domains"
		domain_tracker.load_domains_from_file
		if domain_tracker.domain_known?(root)
			domain_tracker=nil
			return true
		else
			domain_tracker=nil
			return false
		end
	end
def is_trusted? ( host ) puts "Determin if host #{host} is part of trusted root domains" if @verbose root = get_domain_root ( host ) puts "Domain root: #{root}" if @verbose domain_tracker = Wmap :: DomainTracker . instance domain_tracker . data_dir = @data_dir domain_tracker . domains_file = domain_tracker . data_dir + "/" + "domains" domain_tracker . load_domains_from_file if domain_tracker . domain_known? ( root ) domain_tracker = nil return true else domain_tracker = nil return false end end
determine if host is part of trusted (known) root domains
determine if host is part of trusted ( known ) root domains
host
<not_specific>