Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dnsviz/dnsviz.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCasey Deccio <casey@deccio.net>2017-04-14 07:03:15 +0300
committerCasey Deccio <casey@deccio.net>2017-06-15 23:40:17 +0300
commit1f80fb6fd1c711b5fa64d9f9f89f6b4b56bb9284 (patch)
treeab285f303c2f21a24e5b2fd889f231599ead1266
parentb6b3e88783a5d0bd66dc2177bb0e844f6a30f4c7 (diff)
Change time to timeout
-rwxr-xr-xcontrib/digviz6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/digviz b/contrib/digviz
index aadb66e..835391e 100755
--- a/contrib/digviz
+++ b/contrib/digviz
@@ -234,15 +234,15 @@ class DigCommandLineQuery:
self.tcp = True
elif arg in ('+notcp', '+novc'):
self.tcp = False
- elif arg.startswith('+time') and \
- (len(arg) <= 5 or arg[5] == '='):
+ elif arg.startswith('+timeout') and \
+ (len(arg) <= 8 or arg[8] == '='):
try:
opt, arg = arg.split('=')
self.query_timeout = float(arg)
if self.query_timeout < 1.0:
self.query_timeout = 1.0
except ValueError:
- raise CommandLineException('+time requires a numerical argument')
+ raise CommandLineException('+timeout requires a numerical argument')
#TODO +[no]topdown
#TODO +[no]trace
#TODO +[no]tries