minor update

This commit is contained in:
Miroslav Stampar 2011-10-25 18:07:33 +00:00
parent ee76fed56a
commit 35c889a411

View File

@ -1727,10 +1727,10 @@ def __setTorProxySettings():
raise sqlmapConnectionException, errMsg
def __checkTor():
infoMsg = "checking Tor connection"
logger.info(infoMsg)
if conf.checkTor:
infoMsg = "checking Tor connection"
logger.info(infoMsg)
page, _, _ = Request.getPage(url="https://check.torproject.org/", raise404=False)
if not page or 'Congratulations' not in page:
errMsg = "it seems that Tor is not properly set. "