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>2019-03-12 18:16:21 +0300
committerCasey Deccio <casey@deccio.net>2019-03-13 00:22:38 +0300
commit9794aa42ed21d7f0b4952790e983fe9a8aab0b84 (patch)
treec8e10fce20100a5b59b924e47b95450cbf478560
parent40890f89e41923076a27208da2c7e253892f5e8c (diff)
Fix tag output
-rw-r--r--dnsviz/response.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/dnsviz/response.py b/dnsviz/response.py
index 1020e69..7a12c53 100644
--- a/dnsviz/response.py
+++ b/dnsviz/response.py
@@ -186,7 +186,9 @@ class DNSResponse:
# EDNS flags other than DO
if edns_flags & ~dns.flags.DO:
s += '%d' % edns_flags
- s += '_'
+
+ if edns_options:
+ s += '_'
# other options
for opt in edns_options: