24 Commits

Author SHA1 Message Date
Micah Lee
a53b95867f Fix linux tor paths, make event handler properly quit thread 2020-04-06 19:49:49 -07:00
Micah Lee
ef73f354b7 Typos in EventHandlerThread 2020-04-06 19:29:48 -07:00
Micah Lee
a5a761ddb8 Remove watchdog, replace with a simple background thread 2020-04-06 19:26:45 -07:00
Micah Lee
e7bd89c41d Refactor Onion to store all state for auto-start timer directly in the mode settings, and not in the Onion object itself 2019-12-08 12:51:30 -08:00
Micah Lee
48070409f7 Move private_key, hidservauth_string, and password from "persistent" mode settings to "onion" mode settings; and make it so the onion settings are always saved in each tab, even if the tab is not persistent, so if you stop and start a service in the same tab it has the same onion address and password 2019-12-08 10:13:56 -08:00
Miguel Jacq
29e60fcacf Ensure we always set the service id, so we can stop the right one (particularly when scheduling a share) 2019-11-29 18:40:45 +11:00
Miguel Jacq
065e849051 Fix up autostart (scheduled shares) 2019-11-29 16:38:34 +11:00
Micah Lee
7dcc71c330 Start refactoring Onion to allow for managing a separate onion service for each tab 2019-11-10 17:55:07 -08:00
Micah Lee
3b3c805a34 Make it so passing in --persistent [filename] in the CLI, with no other args, will load that persistent mode settings file and start the server, without needing to do other validations like passing in a list of filenames 2019-11-02 23:32:44 -07:00
Micah Lee
764e404ff2 Refactor ServerStatus to use mode settings 2019-11-02 17:39:27 -07:00
Micah Lee
16268b5b3e Fix CLI tests, and also fix bug related to autostop_sharing that the tests found 2019-11-02 17:01:47 -07:00
Micah Lee
88e151d414 Format all code using black 2019-10-12 21:01:25 -07:00
Micah Lee
ae110026e7 Generate a new static_url_path each time the server is stopped and started again 2019-05-29 18:21:53 -07:00
Micah Lee
7dce7eec45 Rename "slug" to "password" 2019-05-20 22:18:49 -07:00
Miguel Jacq
eb823042bb Standardise all startup_timer, scheduled_start attributes as 'autostart_timer' 2019-03-25 15:28:31 +11:00
Miguel Jacq
84aa627d1f Various Startup Timer fixes for strings, bundled mode, stealth mode, startup/shutdown time clashes 2019-03-11 15:55:17 +11:00
Miguel Jacq
eae049d46a Fix a minor corner case related to server status button when canceling a scheduled share. Leverage scheduled shares in order to test 'cancel' action in local mode for better test coverage 2019-03-08 11:03:37 +11:00
Miguel Jacq
26d262ccfc Add a Startup Timer feature (scheduled start / dead man's switch) 2019-03-05 10:28:27 +11:00
Micah Lee
d068490519 Merge branch 'send_public_mode_arg_to_web_start' of https://github.com/mig5/onionshare into mig5-send_public_mode_arg_to_web_start 2018-09-19 18:39:07 -07:00
Micah Lee
b8d24515e8 Choose a port *before* starting the web service 2018-09-19 18:14:42 -07:00
Miguel Jacq
34e7290b06 Start the WebThread earlier than the Onion service. This gives it a chance to generate its slug before the Onion Service finishes starting up, which can otherwise lead to a crash 2018-09-19 15:07:04 +10:00
Miguel Jacq
70b0add9ef Send the public_mode argument to web.start in the WebThread 2018-09-19 14:40:30 +10:00
Micah Lee
066e8c58ed Import onion exceptions that were missing 2018-09-18 17:44:54 -07:00
Micah Lee
0dc03ecd4c Refactor all of the threading.Threads into QThreads, and quit them all when canceling the server. When canceling the compression thread, specifically mass a cancel message into the Web and ZipWriter objects to make the bail out on compression early 2018-09-17 20:55:54 -07:00