Bug fix for crawling over non-80 port

This commit is contained in:
Miroslav Stampar 2015-03-12 11:49:52 +01:00
parent adc8ac267d
commit 25b23750e8

View File

@ -123,7 +123,7 @@ def crawl(target):
test = readInput(message, default="Y") test = readInput(message, default="Y")
if test[0] not in ("n", "N"): if test[0] not in ("n", "N"):
items = None items = None
url = "%s://%s/sitemap.xml" % (conf.scheme, conf.hostname) url = "%s://%s:%d/sitemap.xml" % (conf.scheme, conf.hostname, conf.port)
try: try:
items = parseSitemap(url) items = parseSitemap(url)
except: except: