Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a7c2636

Browse files
committed
doing that auto default value for --time-sec only for --tor
1 parent 4d48ac5 commit a7c2636

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/option.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,13 +1205,13 @@ def __cleanupOptions():
12051205

12061206
# to distinguish explicit usage of --time-sec
12071207
if conf.timeSec is None:
1208-
if conf.tor or conf.proxy:
1208+
if conf.tor:
12091209
conf.timeSec = 2 * TIME_DEFAULT_DELAY
12101210
kb.adjustTimeDelay = False
12111211

12121212
warnMsg = "increasing default value for "
12131213
warnMsg += " --time-sec to %d because " % conf.timeSec
1214-
warnMsg += "%s switch used" % ("--tor" if conf.tor else "--proxy")
1214+
warnMsg += "--tor switch used"
12151215
logger.warn(warnMsg)
12161216
else:
12171217
conf.timeSec = TIME_DEFAULT_DELAY

0 commit comments

Comments
 (0)