[Pkg-privacy-commits] [onionbalance] 19/117: Check Tor versions supports HSPOST
Donncha O'Cearbahill
donncha-guest at moszumanska.debian.org
Wed Dec 16 23:18:42 UTC 2015
This is an automated email from the git hooks/post-receive script.
donncha-guest pushed a commit to branch debian/sid
in repository onionbalance.
commit 14074ac89e5ced3d97d1596294de140c48296dbe
Author: Donncha O'Cearbhaill <donncha at donncha.is>
Date: Mon Jun 15 14:09:17 2015 +0100
Check Tor versions supports HSPOST
---
onionbalance/manager.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/onionbalance/manager.py b/onionbalance/manager.py
index a96b1b7..5243946 100644
--- a/onionbalance/manager.py
+++ b/onionbalance/manager.py
@@ -95,6 +95,14 @@ def main():
else:
logger.debug("Successfully authenticated to the Tor control port")
+ # Check that the Tor client has support for HSPOST contorl command
+ if not controller.get_version() >= stem.version.Requirement.HSPOST:
+ logger.error("A Tor version >= {} is required. You may need to "
+ "compile Tor from source or install a package from "
+ "the experimental Tor repository.".format(
+ stem.version.Requirement.HSPOST))
+ sys.exit(1)
+
# Load the keys and configuration for each hidden service
for service in config.cfg.config.get("services"):
service_key = util.key_decrypt_prompt(service.get("key"))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionbalance.git
More information about the Pkg-privacy-commits
mailing list