fixed error wmap modules crashing when vhost is nil
git-svn-id: file:///home/svn/framework3/trunk@6447 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
4646249e2e
commit
ce9e47c06b
|
@ -38,7 +38,11 @@ module Auxiliary::WMAPModule
|
|||
|
||||
def wmap_base_url
|
||||
res = (ssl ? "https://" : "http://")
|
||||
res << datastore['VHOST'] || wmap_target_host
|
||||
if datastore['VHOST'].nil?
|
||||
res << wmap_target_host
|
||||
else
|
||||
res << datastore['VHOST']
|
||||
end
|
||||
res << ":" + wmap_target_port
|
||||
res
|
||||
end
|
||||
|
@ -275,4 +279,18 @@ module Auxiliary::WMAPScanGeneric
|
|||
end
|
||||
end
|
||||
|
||||
###
|
||||
#
|
||||
# This module provides methods for WMAP Crawler modules
|
||||
#
|
||||
###
|
||||
|
||||
module Auxiliary::WMAPCrawler
|
||||
include Auxiliary::WMAPModule
|
||||
|
||||
def wmap_type
|
||||
:WMAP_CRAWLER
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue