Micah Lee
deac54db92
Made sure switch to python3 and Qt5 works in OSX ( #261 ). Updated OSX instructions in BUILD.md.
2016-02-12 15:45:26 -08:00
Micah Lee
170811f450
Porting onionshare from python2 to python3 ( #261 ). This commit only ports the CLI version, not the GUI. Has not been tested in Fedora, Windows, or OSX. Removed hack to make unicode filenames work because hack does not work in python3. Replaced constant_time_compare function with a new one that works in python3. Tweaked hidden service checking code because urllib is different in python3.
2016-02-12 14:34:19 -08:00
Micah Lee
b2bda8294a
Create new slug each time onionshare server is started ( #247 ). This required making removing check_slug_candidate as a decorator and calling it inside functions that needed it instead.
2016-02-12 11:56:35 -08:00
Micah Lee
e199946a8d
Display version string automatically in CLI, and in the status bar in GUI ( #251 )
2016-02-12 11:00:35 -08:00
Micah Lee
3c3ea6faf3
Merge branch 'eta' of https://github.com/garrettr/onionshare into garrettr-eta
2016-02-12 08:36:46 -08:00
Garrett Robinson
ea47e80f14
Add estimated time remaining to progress indicator
...
Estimates the time remaining for each download and displays it in the
progress bar. Waits for 10 seconds before showing the progress bar to
allow the download rate to stabilize, which prevents the estimated time
remaining from jumping all over the place at the start of the download
(a.k.a the "Windows copy dialog experience"). If your download takes
less than 10 seconds, you don't really need to see an ETA anyway.
This commit also refactors the Downloads class, splitting out the
download-specific functionality into a new Download class, providing
better encapsulation. As a result, I was able to simplify the call to
`update_download` because it was no longer necessary to pass the
`total_bytes` (which don't change after the download has begun).
Tested on Mac OS 10.9.
2015-12-23 01:05:30 -05:00
Garrett Robinson
9d5ba9b4f6
Revert to using wait_for_hs for ephemeral HS
...
Using `await_publication = True` blocks inside stem until the hidden
service is published, which makes OnionShare appear to hang. This is a
quick fix that reverts to using `wait_for_hs` for ephemeral hidden
services (as well as non-ephemeral hidden services), which avoids
blocking OnionShare.
2015-12-22 23:09:30 -05:00
Micah Lee
e60a82ad22
Fixed crash in Windows, related to HS directory path and slashes
2015-12-07 23:47:13 -08:00
Micah Lee
d67d5010d1
Catch exception that occurs when stopping a web app that has not started ( fixes #237 )
2015-12-07 15:03:53 -08:00
Micah Lee
2ce32e2327
Make hidserv_dir a class variable so it can be cleaned up ( fixes #232 ), and refactor _hsdic2list ( #199 )
2015-12-06 13:51:42 -08:00
Micah Lee
9723270794
Revert "Refactored non-ephemeral hidden services to use get_hidden_service_conf and set_hidden_service_conf rather than get_conf_map and set_options. So much cleaner this way. ( fixes #216 )"
...
I'm reverting this it's causing #232 .
This reverts commit df8e4f6cd4a34af0c5e6a881d377373190445300.
2015-12-06 13:40:35 -08:00
Micah Lee
f4780813d6
Decorator is expecting argument to be named slug_candidate, not shutdown_slug_candidate ( #200 )
2015-12-04 13:17:45 -08:00
Micah Lee
9d1abf668a
Merge branch 'slug_decorator' of https://github.com/pwplus/onionshare into pwplus-slug_decorator
2015-12-04 12:46:51 -08:00
Micah Lee
f2389cc602
Remove all language and localization from download page, to prevent leaking the sender's locale ( fixes #228 )
2015-12-04 12:43:12 -08:00
Micah Lee
e6e323fc9a
Don't access self.hs when using --local-only
2015-12-04 12:37:51 -08:00
Micah Lee
df8e4f6cd4
Refactored non-ephemeral hidden services to use get_hidden_service_conf and set_hidden_service_conf rather than get_conf_map and set_options. So much cleaner this way. ( fixes #216 )
2015-11-20 17:47:42 -08:00
Micah Lee
8f8e38b11d
Refactored _hsdic2list method. It it much easier to understand now. ( fixes #199 )
2015-11-20 14:20:29 -08:00
Micah Lee
76d65c678b
Changed 404 page to just say "404" ( fixes #225 )
2015-11-20 12:50:34 -08:00
Micah Lee
35c1c9cbcb
When looking for a Tor to use, prefer (in this order): Tor Browser, Tor Messenger, system Tor ( fixes #215 )
2015-11-20 12:43:08 -08:00
Will Plusnick
42d7dd4181
Add a decorator to check the slug
...
This commit will add a decorator to the check the slug rather than copy
and pasting the same lines of code at the begining of every route.
2015-11-16 02:09:51 -06:00
Micah Lee
dc58921187
Add docstrings to all classes and methods ( fix #198 )
2015-11-15 19:01:20 -08:00
Micah Lee
a5aff46050
Cleanup ephemeral hidden services
2015-11-15 16:26:44 -08:00
Micah Lee
fd39f84bff
Merge branch 'master' into ephemeral
...
Conflicts:
onionshare/helpers.py
onionshare/onionshare.py
2015-11-15 15:35:59 -08:00
Micah Lee
34591b5634
Merge branch 'master' of https://github.com/jvoisin/onionshare into jvoisin-master
...
Conflicts:
onionshare/socks.py
2015-11-08 15:53:41 -08:00
Micah Lee
d67ca2c406
Merge pull request #207 from lazlolazlolazlo/docstrings
...
Add some missing docstrings.
2015-11-08 12:44:30 -08:00
Micah Lee
55c4c0fac1
Updated onionshare-gui to support ephemeral hidden services
2015-09-08 18:12:24 -07:00
Micah Lee
82e0c4e122
No need to pass transparent_torification into wait_for_hs
2015-09-08 17:48:16 -07:00
Micah Lee
1a4cb26f5d
Move wait_for_hs() function into the HS class
2015-09-08 17:42:08 -07:00
Micah Lee
629a70c249
Fixed call to create_ephemeral_hidden_service, and also await_publication=True to make the app.wait_for_hs() call obsolete
2015-09-08 17:28:23 -07:00
Micah Lee
eba6dbb843
Moved hidden service login into separate file. Prefer to use ephemeral hidden services now if they are available. Ephermal does not yet work, but old hidservdir still works.
2015-09-07 22:34:54 -07:00
Micah Lee
bbee1599c5
Updated copyright year to 2015
2015-09-07 21:48:49 -07:00
Micah Lee
5d37d9b7b2
Removed all of the Tails-specific code. If we use ephemeral hidden services, we no longer need to touch the filesystem, and hopefully no longer need root in Tails.
2015-09-07 21:44:29 -07:00
jvoisin
ac97ddf7d0
Various fixes
...
- more pep8
- add some forgotten deps in setup.py
2015-07-25 11:22:24 +02:00
Lazlo Westerhof
7446cee655
Fix some codestyle issues according to pep8.
2015-06-26 19:38:22 +02:00
Lazlo Westerhof
7fada800f3
Add some missing docstrings.
2015-06-25 21:55:29 +02:00
Micah Lee
19fac71a3e
figure out the osx_resource_dir only once, to fix issue with cli version in OSX
2015-06-16 14:30:09 -07:00
Micah Lee
ba424fa427
suppress download progress output to stdout in OSX ( fixes #203 )
2015-06-16 13:03:04 -07:00
Micah Lee
0350cb3cdc
catch exceptions when cleaning up hidden services
2015-06-16 12:33:56 -07:00
Micah Lee
210448d6c9
In Linux, create HS dir in /tmp/onionshare/* ( #185 ), and also connect to Tor control port more robustly
2015-05-19 13:34:36 -07:00
Micah Lee
1f52c9b565
Handles a new exception that gets thrown in Tails using a bridge while waiting for the HS
2015-05-18 20:54:04 +00:00
Micah Lee
815c2a8741
changed cwd in onionshare CLI script for OSX in the right places to support both loading strings and relative paths for files to share ( #132 )
2015-05-16 13:37:28 -07:00
Micah Lee
ccc8b87b9a
CLI version of onionshare in OSX now works when symlinked ( closes #132 )
2015-05-15 19:07:41 -07:00
Micah Lee
2ea0c6aef3
moving platform-specific scripts into install folder, and making onionshare CLI work in OSX ( #132 )
2015-05-15 18:52:20 -07:00
Micah Lee
ad553146c7
adding html files to Resources, loading them from the correct path, and make sure to include jinja2 extension in py2app ( #151 )
2015-05-15 17:43:01 -07:00
Micah Lee
a86cda4549
Ripping out dmg code, replacing pyinstaller with py2app for OSX -- still in progress ( #151 )
2015-05-15 16:56:22 -07:00
Micah Lee
669750be37
specify types in all str.format() calls ( fixes #169 )
2015-05-15 12:26:58 -07:00
Micah Lee
e78e21ac47
create the ZipFile with allowZip64=True. fixes #173
2015-02-12 17:03:56 -08:00
Micah Lee
027d77416e
fix Windows path to prevent Tor control port from breaking
2014-12-09 19:06:59 -08:00
Micah Lee
21e2546435
In Tails OnionShare now creates HS directory in /var/lib/tor, to obey AppArmor rules ( fixes #166 )
2014-12-10 02:09:10 +00:00
Micah Lee
ee98e1b024
removed helpers.get_tmp_dir() in favor of tempdir module
2014-12-10 00:50:19 +00:00