Commit 9427e8c7 authored by Alexandre's avatar Alexandre
Browse files

Remove unused imports and code

parent 3c2f26cd
...@@ -10,15 +10,11 @@ import getopt ...@@ -10,15 +10,11 @@ import getopt
import urllib.parse import urllib.parse
import time import time
import socket import socket
import os.path
try: try:
# http://pycurl.io/docs/latest # http://pycurl.io/docs/latest
import pycurl 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. # Octobre 2019: the Python GnuTLS bindings don't work with Python 3. So we use OpenSSL.
# https://www.pyopenssl.org/ # https://www.pyopenssl.org/
# https://pyopenssl.readthedocs.io/ # https://pyopenssl.readthedocs.io/
...@@ -344,6 +340,9 @@ def run_check(connection): ...@@ -344,6 +340,9 @@ def run_check(connection):
if not ok and opts.mandatory_level >= homer.mandatory_levels["nicetohave"]: if not ok and opts.mandatory_level >= homer.mandatory_levels["nicetohave"]:
return False 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 # Test that different Header values are not breaking anything
if not connection.dot: if not connection.dot:
# The DoH server is right to reject these (Example: 'HTTP # The DoH server is right to reject these (Example: 'HTTP
...@@ -595,8 +594,6 @@ def run_default(name, connection, opts): ...@@ -595,8 +594,6 @@ def run_default(name, connection, opts):
return ok return ok
# Main program # Main program
me = os.path.basename(sys.argv[0])
url, name = parse_opts(opts) url, name = parse_opts(opts)
# retrieve all ips when using --check # retrieve all ips when using --check
......
...@@ -4,21 +4,15 @@ ...@@ -4,21 +4,15 @@
# main purpose is to test DoH and DoT resolvers. Reference site is # main purpose is to test DoH and DoT resolvers. Reference site is
# <https://framagit.org/bortzmeyer/homer/> See author, documentation, # <https://framagit.org/bortzmeyer/homer/> See author, documentation,
# etc, there, or in the README.md included with the distribution. # 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 sys
import getopt import getopt
import urllib.parse
import time
import socket import socket
import os.path import os.path
try: 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. # Octobre 2019: the Python GnuTLS bindings don't work with Python 3. So we use OpenSSL.
# https://www.pyopenssl.org/ # https://www.pyopenssl.org/
# https://pyopenssl.readthedocs.io/ # https://pyopenssl.readthedocs.io/
......
Supports Markdown
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