diff options
author | Miguel Jacq <mig@mig5.net> | 2021-10-25 10:44:38 +1100 |
---|---|---|
committer | Miguel Jacq <mig@mig5.net> | 2021-10-25 10:44:38 +1100 |
commit | 3a715346af241707c952ff446734f8c7bfccd21f (patch) | |
tree | 867e24abf548502fe9f4fc0f500a7459ecd5f6ec /cli/onionshare_cli/__init__.py | |
parent | c81862130ba0969228fa61a3aaf9612ff8424971 (diff) | |
download | onionshare-3a715346af241707c952ff446734f8c7bfccd21f.tar.gz onionshare-3a715346af241707c952ff446734f8c7bfccd21f.zip |
Add cleanup method for the Meek class to kill any meek-client subprocesses once done. Hide stderr from the CLI printed output
Diffstat (limited to 'cli/onionshare_cli/__init__.py')
-rw-r--r-- | cli/onionshare_cli/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/onionshare_cli/__init__.py b/cli/onionshare_cli/__init__.py index 99992b25..4e34a508 100644 --- a/cli/onionshare_cli/__init__.py +++ b/cli/onionshare_cli/__init__.py @@ -286,8 +286,8 @@ def main(cwd=None): web = Web(common, False, mode_settings, mode) # Create the Meek object and start the meek client - meek = Meek(common) - meek.start() + # meek = Meek(common) + # meek.start() # Create the CensorshipCircumvention object to make # API calls to Tor over Meek @@ -296,6 +296,8 @@ def main(cwd=None): # domain fronting. # censorship_recommended_settings = censorship.request_settings(country="cn") # print(censorship_recommended_settings) + # Clean up the meek subprocess once we're done working with the censorship circumvention API + # meek.cleanup() # Start the Onion object try: |