[Pkg-privacy-commits] [onionshare] 35/256: Support stem versions older than 1.5.0 again. Fix for issue #332
Ulrike Uhlig
ulrike at moszumanska.debian.org
Fri May 26 12:53:07 UTC 2017
This is an automated email from the git hooks/post-receive script.
ulrike pushed a commit to branch master
in repository onionshare.
commit 7fe9f3be132473ca5a4778db0149a55c87a30162
Author: Sigma <b3sigma at gmail.com>
Date: Sun Dec 25 22:27:47 2016 -0800
Support stem versions older than 1.5.0 again. Fix for issue #332
---
onionshare/onion.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/onionshare/onion.py b/onionshare/onion.py
index 40fc30a..05d479b 100644
--- a/onionshare/onion.py
+++ b/onionshare/onion.py
@@ -130,7 +130,12 @@ class Onion(object):
else:
basic_auth = None
- res = self.c.create_ephemeral_hidden_service({ 80: port }, await_publication=True, basic_auth=basic_auth)
+ if basic_auth != None :
+ res = self.c.create_ephemeral_hidden_service({ 80: port }, await_publication=True, basic_auth=basic_auth)
+ else :
+ # if the stem interface is older than 1.5.0, basic_auth isn't a valid keyword arg
+ res = self.c.create_ephemeral_hidden_service({ 80: port }, await_publication=True)
+
self.service_id = res.content()[0][2].split('=')[1]
onion_host = self.service_id + '.onion'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git
More information about the Pkg-privacy-commits
mailing list