Commit Graph

3871 Commits

Author SHA1 Message Date
Miguel Jacq
55c8ada6ef
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
06a3599fe1
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
f8dd9547cd
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
19072503a9
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
1d0d30458c
Merge pull request #1447 from tladesignz/develop
Fixed send.js table sorting.
2021-11-18 20:14:14 -08:00
Micah Lee
236bc33bc8
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
221eb1cbac
Fix comment 2021-11-16 18:10:25 -08:00
Micah Lee
ec45a08054
Update snapcraft docs 2021-11-15 18:41:42 -08:00
Micah Lee
f40e5012e0
Change snapcraft grade to stable, and version bump to 2.4.1 in snapcraft 2021-11-15 18:30:10 -08:00
Micah Lee
267e9eb1e4
Exception handling on printing the banner 2021-11-15 18:16:10 -08:00
Micah Lee
a4db0d26c9
Fix for meek to working in snapcraft 2021-11-15 18:07:57 -08:00
Micah Lee
99c85f55e2
Fix bug that was preventing tor from connecting in snapcraft 2021-11-14 20:53:22 -08:00
Micah Lee
f09bb66425
Snap successfully builds meek-client, and WIP getting tor to connect 2021-11-14 17:52:40 -08:00
Micah Lee
0f63c89a59
Detect Flatpak via environment variable 2021-11-14 17:16:21 -08:00
Micah Lee
70248ed4a5
Upgrade to cepa 1.8.3 2021-11-14 16:24:36 -08:00
Micah Lee
6b521c152e
Show the alert on the the dragEnterEvent 2021-11-14 16:11:39 -08:00
Micah Lee
ab800c577a
More thoroughly remove drag and drop to prevent the drop label from getting created 2021-11-14 16:00:00 -08:00
Micah Lee
ad9cacd44a
Drag and drop string does not use filename 2021-11-14 15:49:30 -08:00
Micah Lee
3eb912bf5a
Move drag and drop logic into dropEvent 2021-11-14 15:46:20 -08:00
Micah Lee
bfce4b005c
Disable drag and drop in flatpak 2021-11-14 15:08:06 -08:00
Micah Lee
94c588d0ce
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
365ddc5e34
Merge branch 'develop' into 1459_linux_packaging 2021-11-14 13:28:45 -08:00
Micah Lee
5d7293db44
Keep using stem for now, and comment out meek-client for now 2021-11-14 13:28:33 -08:00
Micah Lee
27510a9f26
Start adding new pluggable transports to snap 2021-11-14 11:08:00 -08:00
Saptak Sengupta
62396e66b8
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
182b6bb67b
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
be1772b2a4
Fix tor paths for flatpak 2021-11-12 17:18:28 -08:00
Micah Lee
3464a24e69
Add logging 2021-11-12 16:21:17 -08:00
Micah Lee
f00d2cc0b0
Switch stem with cepa, and update CLI packages 2021-11-12 15:47:33 -08:00
Micah Lee
58dd3c73f9
Delete flatpak from here since it is managed in a separate repo 2021-11-11 17:38:38 -08:00
Miguel Jacq
80e7316249
Allow website mode to stop even if people have viewed it 2021-11-12 11:58:48 +11:00
Miguel Jacq
f5e4d70731
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
da94b92d18
Merge branch 'censorship' into develop 2021-11-11 14:42:14 -08:00
Micah Lee
6a8766671b
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
d88005d550
When Tor is disconnected, hide the Check for Updates button in the Settings tab 2021-11-09 18:57:07 -08:00
Micah Lee
73b570f4b4
Check if Tor is connected instead of if the Tor controller is authenticated 2021-11-09 18:49:23 -08:00
Micah Lee
9430439b5f
Fix meek-client in Windows 2021-11-07 12:12:12 -08:00
Micah Lee
472e383b7d
Fix settings error color in dark mode 2021-11-06 21:02:28 -07:00
Micah Lee
f915f911c6
Make autoupdate group in Settings Tab centered 2021-11-06 20:55:50 -07:00
Micah Lee
0e2d2a1e46
macOS seems to have close buttons that work on their own now 2021-11-06 20:52:05 -07:00
Micah Lee
fa70368a8d
Copy snowflake-client from macOS Tor Browser 2021-11-06 20:46:52 -07:00
Micah Lee
4e62b8831a
Get tor from Tor Browser 11.0a10 on all platforms 2021-11-06 20:42:51 -07:00
Micah Lee
1b259a208d
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
7448f76f2e
Respect --local-only 2021-11-06 20:17:02 -07:00
Micah Lee
7b162b4bc7
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
7da1ac187b
Remove sticky "Disconnected from Tor" message (patch thanks to @mig5) 2021-11-06 19:20:36 -07:00
Max1Truc
e9ef087c8f Fix "KeyError: 'fr'" in desktop strings.py 2021-10-27 11:47:17 +02:00
Micah Lee
de3c95cc50
Set self.torr_settings_tab to None _before_ deleting the tab 2021-10-26 22:12:22 -07:00
Micah Lee
bde94d37fc
Don't delete any custom bridges that are set 2021-10-26 22:09:24 -07:00
Micah Lee
706a04242f
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