[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [doctor/master] Disable DocTor checks for tor26
commit 5bae20237ad033d8fc776fb17bf043f5776b57e3
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Wed Apr 11 08:58:31 2018 -0700
Disable DocTor checks for tor26
To cut down on abuse tor26 rejects DirPort requests without a '.z' suffix
(technically it throttles them, but I've never seen one work so effectively
it's blocked). Stem no longer appends this suffix, using headers to indicate
the compression it wants instead.
---
consensus_health_checker.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/consensus_health_checker.py b/consensus_health_checker.py
index cd809cc..48c1224 100755
--- a/consensus_health_checker.py
+++ b/consensus_health_checker.py
@@ -25,6 +25,8 @@ from stem.util.lru_cache import lru_cache
Runlevel = stem.util.enum.UppercaseEnum('NOTICE', 'WARNING', 'ERROR')
DIRECTORY_AUTHORITIES = stem.descriptor.remote.get_authorities()
+del DIRECTORY_AUTHORITIES['tor26'] # DirPort does not service requests without a '.z' suffix
+
EMAIL_SUBJECT = 'Consensus issues'
CONFIG = stem.util.conf.config_dict('consensus_health', {
@@ -628,6 +630,8 @@ def has_authority_flag(latest_consensus, consensuses, votes):
if Flag.AUTHORITY in desc.flags:
seen_authorities.add(desc.nickname)
+ seen_authorities.remove('tor26')
+
known_authorities = set(DIRECTORY_AUTHORITIES.keys())
missing_authorities = known_authorities.difference(seen_authorities)
extra_authorities = seen_authorities.difference(known_authorities)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits