502 Commits

Author SHA1 Message Date
Micah Lee
62b5d64bc7 Catch errors that occur when connection_type is bundled_tor, but the tor process closes before it can connect 2017-05-17 12:00:42 -07:00
Micah Lee
41f4b666e7 When saving settings, if Tor settings changed or if Tor isn't connected, reboot the Onion object, so that it's always connected to Tor when using the app 2017-05-16 16:50:33 -07:00
Micah Lee
b7a9574490 Fixed signal/slot/thread issue in TorConnectionDialog and TorConnectionThread, and updated the language of bundled Tor error messages 2017-05-16 13:09:27 -07:00
Micah Lee
cabb2701f2 Made Settings debug log less verbose 2017-05-16 13:01:57 -07:00
Micah Lee
dec9b9ec68 Make the Onion object poll the tor controller less frequently, now that the connection happens in a separate thread 2017-05-16 11:47:18 -07:00
Micah Lee
226b608cff Move connecting to Tor into its own separate thread 2017-05-16 11:44:34 -07:00
Micah Lee
3c88bc828b Add debug logging to Onion, OnionShare, and Settings objects 2017-05-16 11:23:18 -07:00
Micah Lee
410a71b702 Add log() method to onionshare.common, which logs to stdout if in debug mode 2017-05-16 11:12:55 -07:00
Micah Lee
6b35a44d41 Renamed onionshare.helpers module to onionshare.common 2017-05-16 11:05:48 -07:00
Micah Lee
72e862124d Pass debug into the Onion and OnionShareGUI objects 2017-05-16 10:57:59 -07:00
Micah Lee
f48e160816 Move owernship of the TorConnetionDialog objection from __init__.py into the OnionShareGUI class, and make it so when the Tor connection gets canceled, OnionShare quits 2017-05-14 18:30:45 -07:00
Micah Lee
8f0af317b5 Fixed various issues introduced by creating an singleton Onion object and passing it into the OnionShare object 2017-05-14 17:21:13 -07:00
Micah Lee
a15cae72de Merge branch 'master' into tor-bundle-autoupdate 2017-04-18 16:07:46 -07:00
Micah Lee
24c5d83a48 Merge branch 'tor-bundle' into autoupdate 2017-04-18 16:00:24 -07:00
Micah Lee
c36b79e1d8 Added support for bundled Tor in macOS 2017-04-18 15:12:24 -07:00
Micah Lee
e54af350a1 Onion calls tor_status_update_func much more frequently, which makes the GUI more responsive 2017-04-17 20:54:55 -07:00
Micah Lee
d7c181e0b4 Add an Onion exception for canceling connecting Tor 2017-04-17 20:49:06 -07:00
Micah Lee
915d548399 Began making a TorConnectionDialog, which handles connecting to the Tor network 2017-04-17 20:26:35 -07:00
Micah Lee
1b240fb9c0 Move OnionShare object into its own file, so __init__ is just CLI logic 2017-04-17 19:28:51 -07:00
Micah Lee
89b1cc444c Make it so ctrl-c actually quits the CLI version 2017-04-17 19:22:40 -07:00
Micah Lee
46d25552e0 Added helper function get_available_port(), and use it to avoid code duplication. Removed unused is_root() helper function. Refactored Onion object to not try to connect in the constructor. 2017-04-17 19:13:53 -07:00
Micah Lee
b94253e6ea Removed transparent_torification from the full app, and refactored OnionShare class to get passed in an Onion, and doesn't get passed in stealth. 2017-04-17 19:12:02 -07:00
Micah Lee
baa7c4bdd1 Added Tor SOCKS address and port settings 2017-04-15 16:33:41 -07:00
Micah Lee
9fcb6f0c93 Added autoupdate settings to Settings, and also to the settings dialog 2017-04-15 15:24:08 -07:00
Micah Lee
be2b086cc4 Make sure tor process is killed in a more robust manner, and also increase tor connection timeout to 45 seconds 2017-04-15 11:43:19 -07:00
Micah Lee
c4997429a2 Don't use shell=true in subprocess, and instead hide the console window in Windows using the startupinfo arg 2017-04-15 11:34:03 -07:00
Micah Lee
984d2b6084 Added support for bundled tor connection type in Windows, including using ports instead of socket files 2017-04-14 18:33:44 -07:00
Micah Lee
9f9b609902 Increase Tor connection timeout to 30 seconds 2017-04-14 10:32:15 -07:00
Micah Lee
94cf86c3b4 Connecting to Tor now times out of 10 seconds 2017-04-14 10:00:56 -07:00
Micah Lee
0415b8112f Change the settings to default to bundled connection type instead of automatic 2017-04-13 23:20:24 -07:00
Micah Lee
f82cf01e6d Add Tor connection status to the main window status bar 2017-04-13 23:08:25 -07:00
Micah Lee
8677ea35e5 In the settings dialog, show Tor connection status when the connection type is bundled 2017-04-13 22:56:47 -07:00
Micah Lee
e295f90e68 Connecting to Tor in bundled mode now creates a temporary tor data dir, starts a new tor process, and connects to it. Also, refactored Settings dialog to allow Linux to use bundled tor as well 2017-04-13 22:22:34 -07:00
Micah Lee
9cf1011b0a Started to implement Bundled Tor connection settings 2017-04-08 18:10:17 -07:00
Micah Lee
42acb6d34e Added close_after_first_download and use_stealth to settings, and also to the GUI settings dialog 2017-04-08 13:42:07 -07:00
Micah Lee
332101b849 In Whonix, listen on 0.0.0.0 instead of 127.0.0.1 (#220) 2017-02-22 18:42:41 -08:00
Micah Lee
677951c240 Catch Tor protocol error exceptions when starting an onion service (#344) 2017-02-22 16:45:52 -08:00
Micah Lee
1c4574a7be Update comments to be more accurate 2017-02-22 15:28:06 -08:00
Micah Lee
e4649ac3b5 Rip out support for non-ephemeral onion services 2017-02-22 14:10:06 -08:00
Micah Lee
61ccced12c Properly handle KeyboardInterrupt exception in CLI in macOS 2017-02-22 13:35:34 -08:00
Micah Lee
37539c95b6 Renamed 'resources' to 'share', and updated location of 'share' files in OSX/Win binaries 2017-02-21 16:59:14 -08:00
Micah Lee
b64597ab15 Update helpers.get_resource_path to correctly find resources in frozen macOS app bundles 2017-02-21 14:34:34 -08:00
Micah Lee
c991a407e2 Add new AuthenticationFailure exception, and make the Onion/stem code catch more exceptions when connecting to a Tor controller 2017-01-07 17:31:26 -08:00
Micah Lee
b8c7807b92 Moved onionshare and onionshare_gui logic directly into __init__.py files 2017-01-06 19:00:08 -08:00
Micah Lee
c0a26b7c6c Change GPL copyright from 2016 to 2017 2017-01-06 18:58:15 -08:00
Micah Lee
6e171f02c3 Catch exceptions for guessing default Tor Browser socket file path 2017-01-06 11:54:42 -08:00
Micah Lee
47eeb547bf Guess the default socket file path for new versions of Tor Browser in OS X 2017-01-06 11:46:41 -08:00
Garrett Robinson
0403d3d045 Make render_template_string autoescape by default in Flask versions < 0.11 2016-12-30 13:04:19 -05:00
Garrett Robinson
ff2e0c910e Revert "Added a function to remove HTML from file and directory names"
This reverts commit b95828973ca2f7d24b204aef8c431f99679fc906.
2016-12-30 12:04:09 -05:00
Garrett Robinson
c52bb03dc6 Revert "Replaced sanitize_html() function that was based on regex with python3's html.escape()"
This reverts commit a24b4a77627824030b926265d305d27926382f25.
2016-12-30 12:02:40 -05:00