From f42dbfcfb2e641fb26b8ea348d3f4487b98e740a Mon Sep 17 00:00:00 2001 From: Babak Farrokhi Date: Tue, 29 Oct 2024 21:30:44 +0100 Subject: [PATCH] Aesthetics --- dnsping.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dnsping.py b/dnsping.py index 84e791f..14faa2b 100755 --- a/dnsping.py +++ b/dnsping.py @@ -33,11 +33,11 @@ import socket import sys import time -import httpx from statistics import stdev import dns.flags import dns.resolver +import httpx from util.dns import PROTO_UDP, PROTO_TCP, PROTO_TLS, PROTO_HTTPS, PROTO_QUIC, proto_to_text, unsupported_feature, \ random_string, getDefaultPort, valid_rdatatype @@ -419,7 +419,6 @@ def main(): if show_answer: # The answer should be displayed at the rightmost for ans in answers.answer: if ans.rdtype == dns.rdatatype.from_text(rdatatype): # is this the answer to our question? - # extras += " [%s]" % ans[0] extras += " [RDATA: %s]" % ans[0] break