mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 11:45:46 +03:00
doing that auto default value for --time-sec only for --tor
This commit is contained in:
parent
4d48ac54dc
commit
a7c26366b4
|
@ -1205,13 +1205,13 @@ def __cleanupOptions():
|
|||
|
||||
# to distinguish explicit usage of --time-sec
|
||||
if conf.timeSec is None:
|
||||
if conf.tor or conf.proxy:
|
||||
if conf.tor:
|
||||
conf.timeSec = 2 * TIME_DEFAULT_DELAY
|
||||
kb.adjustTimeDelay = False
|
||||
|
||||
warnMsg = "increasing default value for "
|
||||
warnMsg += " --time-sec to %d because " % conf.timeSec
|
||||
warnMsg += "%s switch used" % ("--tor" if conf.tor else "--proxy")
|
||||
warnMsg += "--tor switch used"
|
||||
logger.warn(warnMsg)
|
||||
else:
|
||||
conf.timeSec = TIME_DEFAULT_DELAY
|
||||
|
|
Loading…
Reference in New Issue
Block a user