Commit 9427e8c7 authored by Alexandre's avatar Alexandre

Remove unused imports and code

parent 3c2f26cd
......@@ -10,15 +10,11 @@ import getopt
import urllib.parse
import time
import socket
import os.path
try:
# http://pycurl.io/docs/latest
import pycurl
# http://www.dnspython.org/
import dns.message
# Octobre 2019: the Python GnuTLS bindings don't work with Python 3. So we use OpenSSL.
# https://www.pyopenssl.org/
# https://pyopenssl.readthedocs.io/
......@@ -344,6 +340,9 @@ def run_check(connection):
if not ok and opts.mandatory_level >= homer.mandatory_levels["nicetohave"]:
return False
# TODO we miss the tests of pipelining and out-of-order for DoT and
# multistreams for DoH
# Test that different Header values are not breaking anything
if not connection.dot:
# The DoH server is right to reject these (Example: 'HTTP
......@@ -595,8 +594,6 @@ def run_default(name, connection, opts):
return ok
# Main program
me = os.path.basename(sys.argv[0])
url, name = parse_opts(opts)
# retrieve all ips when using --check
......
......@@ -4,21 +4,15 @@
# main purpose is to test DoH and DoT resolvers. Reference site is
# <https://framagit.org/bortzmeyer/homer/> See author, documentation,
# etc, there, or in the README.md included with the distribution.
#
# This file can be used to monitor a DoT/DoH server.
import sys
import getopt
import urllib.parse
import time
import socket
import os.path
try:
# http://pycurl.io/docs/latest
import pycurl
# http://www.dnspython.org/
import dns.message
# Octobre 2019: the Python GnuTLS bindings don't work with Python 3. So we use OpenSSL.
# https://www.pyopenssl.org/
# https://pyopenssl.readthedocs.io/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment