diff options
author | Micah Lee <micah@micahflee.com> | 2020-11-17 17:45:31 -0800 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2020-11-17 17:45:31 -0800 |
commit | 9f21d505de1c37f2159fb7d08fb88775a171183a (patch) | |
tree | 4609671203c550740de67663d8d9aa7e93a1741f /cli | |
parent | ac5075e082fbba69479cf8dabc614332eaaf956e (diff) | |
download | onionshare-9f21d505de1c37f2159fb7d08fb88775a171183a.tar.gz onionshare-9f21d505de1c37f2159fb7d08fb88775a171183a.zip |
Remove Onion.bundle_tor_supported because it is now always supported
Diffstat (limited to 'cli')
-rw-r--r-- | cli/onionshare_cli/onion.py | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/cli/onionshare_cli/onion.py b/cli/onionshare_cli/onion.py index 6a42638a..0f712d5d 100644 --- a/cli/onionshare_cli/onion.py +++ b/cli/onionshare_cli/onion.py @@ -22,7 +22,13 @@ from stem.control import Controller from stem import ProtocolError, SocketClosed from stem.connection import MissingPassword, UnreadableCookieFile, AuthenticationFailure from Crypto.PublicKey import RSA -import base64, os, sys, tempfile, shutil, urllib, platform, subprocess, time, shlex +import base64 +import os +import tempfile +import subprocess +import time +import shlex +import psutil from distutils.version import LooseVersion as Version from . import common @@ -158,14 +164,6 @@ class Onion(object): self.use_tmp_dir = use_tmp_dir - # Is bundled tor supported? - if ( - self.common.platform == "Windows" or self.common.platform == "Darwin" - ) and getattr(sys, "onionshare_dev_mode", False): - self.bundle_tor_supported = False - else: - self.bundle_tor_supported = True - # Set the path of the tor binary, for bundled tor if not get_tor_paths: get_tor_paths = self.common.get_tor_paths @@ -218,12 +216,6 @@ class Onion(object): self.c = None if self.settings.get("connection_type") == "bundled": - if not self.bundle_tor_supported: - raise BundledTorNotSupported( - # strings._("settings_error_bundled_tor_not_supported") - "Using the Tor version that comes with OnionShare does not work in developer mode on Windows or macOS." - ) - # Create a torrc for this session if self.use_tmp_dir: self.tor_data_directory = tempfile.TemporaryDirectory( |