3871 Commits

Author SHA1 Message Date
Miguel Jacq
89d44d8dd7 Move the ability to use Tor vs Meek into the CensorshipCircumvention class so that we can use those endpoints over Tor elsewhere later 2021-11-27 10:35:25 +11:00
Miguel Jacq
57bec79c61 Built-in bridge refactoring.
Store the built-in bridges in OnionShare settings as a dict, and try writing those into the torrc if present.

If they aren't present in OnionShare settings, use the hardcoded templates instead.

Fetch the latest built-in bridges over Tor, once connected to Tor.

If we can't fetch the bridges over Tor, fall back to Meek (domain-fronting) and try again.

Then write those as the dict to the OnionShare settings, to take precedence next time.
2021-11-24 17:55:47 +11:00
Miguel Jacq
b6a81355da Raise exception if the API didn't return bridges for a specific bridge type, or if the bridge type wasn't recognized 2021-11-23 15:36:41 +11:00
Miguel Jacq
80276fce8d Fetch the built-in bridges from Tor's Censorship Circumvention API, rather than hardcode them 2021-11-23 15:28:40 +11:00
Micah Lee
6d9dc33b9e Merge pull request #1447 from tladesignz/develop
Fixed send.js table sorting.
2021-11-18 20:14:14 -08:00
Micah Lee
252519115b Don't try adding a folder if the user clicks cancel, and add additional logging 2021-11-16 18:15:07 -08:00
Micah Lee
707f98a1c9 Fix comment 2021-11-16 18:10:25 -08:00
Micah Lee
4f0b3a5966 Update snapcraft docs 2021-11-15 18:41:42 -08:00
Micah Lee
5a30705465 Change snapcraft grade to stable, and version bump to 2.4.1 in snapcraft 2021-11-15 18:30:10 -08:00
Micah Lee
516c0f2484 Exception handling on printing the banner 2021-11-15 18:16:10 -08:00
Micah Lee
aecb7bef93 Fix for meek to working in snapcraft 2021-11-15 18:07:57 -08:00
Micah Lee
43e5d21731 Fix bug that was preventing tor from connecting in snapcraft 2021-11-14 20:53:22 -08:00
Micah Lee
336a6c8028 Snap successfully builds meek-client, and WIP getting tor to connect 2021-11-14 17:52:40 -08:00
Micah Lee
54689eada8 Detect Flatpak via environment variable 2021-11-14 17:16:21 -08:00
Micah Lee
a5893225fc Upgrade to cepa 1.8.3 2021-11-14 16:24:36 -08:00
Micah Lee
83ba109852 Show the alert on the the dragEnterEvent 2021-11-14 16:11:39 -08:00
Micah Lee
36a2132887 More thoroughly remove drag and drop to prevent the drop label from getting created 2021-11-14 16:00:00 -08:00
Micah Lee
293a24a48d Drag and drop string does not use filename 2021-11-14 15:49:30 -08:00
Micah Lee
9d2eb45278 Move drag and drop logic into dropEvent 2021-11-14 15:46:20 -08:00
Micah Lee
0028619e6e Disable drag and drop in flatpak 2021-11-14 15:08:06 -08:00
Micah Lee
f625d1da28 Make the FileSelection widget use native file browser widgets under Flatpak in order to enable the sandbox 2021-11-14 14:24:02 -08:00
Micah Lee
d53d52a163 Merge branch 'develop' into 1459_linux_packaging 2021-11-14 13:28:45 -08:00
Micah Lee
c1ef35d221 Keep using stem for now, and comment out meek-client for now 2021-11-14 13:28:33 -08:00
Micah Lee
e56217af42 Start adding new pluggable transports to snap 2021-11-14 11:08:00 -08:00
Saptak Sengupta
efd9736bb0 Merge pull request #1461 from mig5/fix_cli
Fix various bugs in CLI mode and add runtime tests for it
2021-11-14 19:05:24 +05:30
Saptak Sengupta
77296e6e0d Merge pull request #1454 from Max1Truc/fix-bad-locale
Fix "KeyError: 'fr'" in desktop strings.py
2021-11-14 19:05:14 +05:30
Micah Lee
758b6268cf Fix tor paths for flatpak 2021-11-12 17:18:28 -08:00
Micah Lee
60ed710ccd Add logging 2021-11-12 16:21:17 -08:00
Micah Lee
7ae7c5ef36 Switch stem with cepa, and update CLI packages 2021-11-12 15:47:33 -08:00
Micah Lee
52a1801334 Delete flatpak from here since it is managed in a separate repo 2021-11-11 17:38:38 -08:00
Miguel Jacq
8f81a683ab Allow website mode to stop even if people have viewed it 2021-11-12 11:58:48 +11:00
Miguel Jacq
0b40079a31 Remove unnecessary censorship class invocation, which breaks CLI mode right now.
Fix Website and Chat modes with auto-stop timer in CLI mode.

Add 'poetry run onionshare-cli' tests to CircleCI to catch CLI runtime bugs.
2021-11-12 11:43:09 +11:00
Micah Lee
2429f0e30b Merge branch 'censorship' into develop 2021-11-11 14:42:14 -08:00
Micah Lee
68df0166cf Merge pull request #1449 from onionshare/1442_settings_tabs
Switch Settings and Tor Settings dialogs into tabs
2021-11-11 14:41:49 -08:00
Micah Lee
ba6947ff4e When Tor is disconnected, hide the Check for Updates button in the Settings tab 2021-11-09 18:57:07 -08:00
Micah Lee
e6a0b97283 Check if Tor is connected instead of if the Tor controller is authenticated 2021-11-09 18:49:23 -08:00
Micah Lee
08ae2e616b Fix meek-client in Windows 2021-11-07 12:12:12 -08:00
Micah Lee
1eb2476d3c Fix settings error color in dark mode 2021-11-06 21:02:28 -07:00
Micah Lee
71b6d77e97 Make autoupdate group in Settings Tab centered 2021-11-06 20:55:50 -07:00
Micah Lee
9f40d2d1d3 macOS seems to have close buttons that work on their own now 2021-11-06 20:52:05 -07:00
Micah Lee
22fc1354ce Copy snowflake-client from macOS Tor Browser 2021-11-06 20:46:52 -07:00
Micah Lee
42507b1138 Get tor from Tor Browser 11.0a10 on all platforms 2021-11-06 20:42:51 -07:00
Micah Lee
5346278ad3 Merge pull request #1450 from mig5/fix_persistent_chat_mode_load
Correctly load a persistent Chat tab
2021-11-06 23:26:55 -04:00
Micah Lee
985e0fdf6b Respect --local-only 2021-11-06 20:17:02 -07:00
Micah Lee
8919e2924b In all modes, if Tor isn't connected display a message instead of showing the mode content 2021-11-06 20:05:20 -07:00
Micah Lee
1d4d841239 Remove sticky "Disconnected from Tor" message (patch thanks to @mig5) 2021-11-06 19:20:36 -07:00
Max1Truc
41a8878298 Fix "KeyError: 'fr'" in desktop strings.py 2021-10-27 11:47:17 +02:00
Micah Lee
f4eeab03db Set self.torr_settings_tab to None _before_ deleting the tab 2021-10-26 22:12:22 -07:00
Micah Lee
ffee426e6d Don't delete any custom bridges that are set 2021-10-26 22:09:24 -07:00
Micah Lee
7752f5fa9b Show message in Tor Settings tab if any tabs have active services, to prevent the user from changing settings without stopping them 2021-10-26 22:00:39 -07:00