Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
DNS testing tools
Remoh
Commits
9427e8c7
Commit
9427e8c7
authored
Sep 17, 2020
by
Alexandre
Browse files
Remove unused imports and code
parent
3c2f26cd
Changes
2
Show whitespace changes
Inline
Side-by-side
homer.py
View file @
9427e8c7
...
...
@@ -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
...
...
monitoring.py
View file @
9427e8c7
...
...
@@ -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/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment