Micah Lee
9c166a07d2
Add debug logging to Onion, OnionShare, and Settings objects
2017-05-16 11:23:18 -07:00
Micah Lee
7003349873
Add log() method to onionshare.common, which logs to stdout if in debug mode
2017-05-16 11:12:55 -07:00
Micah Lee
1591888863
Renamed onionshare.helpers module to onionshare.common
2017-05-16 11:05:48 -07:00
Micah Lee
dc23946fe8
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
9f43b7298c
Move OnionShare object into its own file, so __init__ is just CLI logic
2017-04-17 19:28:51 -07:00
Micah Lee
db052ce85f
Moved onionshare and onionshare_gui logic directly into __init__.py files
2017-01-06 19:00:08 -08:00
Micah Lee
f8005a63ea
Change GPL copyright from 2016 to 2017
2017-01-06 18:58:15 -08:00
Micah Lee
a0abab3653
Make automatic settings work with with Tor Browser 6.0.8
2016-12-29 12:57:58 -08:00
Micah Lee
ebf13cfa11
Handle new Tor controller errors in CLI
2016-12-29 10:16:20 -08:00
Micah Lee
6eed7258a7
Properly handle errors for using stealth onion services in the GUI, instead of crashing in the background ( #144 )
2016-12-23 19:08:18 -08:00
Micah Lee
eff0d3729a
Add support for stealth onion services in CLI version
2016-12-22 16:56:39 -08:00
Micah Lee
87761c6fce
Remove HSDirError exception, because it is no longer thrown
2016-09-05 11:32:30 -07:00
Micah Lee
360fb6cfcc
Refactor onionshare CLI to use await_publication=True when using ephemeral onion services, instead of relying on wait_for_hs function
2016-09-05 11:29:12 -07:00
Micah Lee
1372239ed7
Renamed hs to onion
2016-09-05 11:16:54 -07:00
Micah Lee
bba46e088f
Merge branch 'master' into cx_Freeze
2016-09-04 17:23:27 -07:00
Micah Lee
dbf4af02ac
Pass helpers into strings.load_strings instead of importing it, so fix issue with cx_Freeze in Windows
2016-09-04 20:09:18 -07:00
Micah Lee
310d861ce0
Stop saying 'hidden service', start saying 'onion service'
2016-09-04 17:23:06 -07:00
jvoisin
17e389b800
Improve pep8 conformance
2016-04-18 01:40:17 +02:00
Micah Lee
b47ef630d5
Replace onionshare slug with 2-words from securedrop diceware list ( #238 )
2016-04-12 16:29:11 -07:00
Micah Lee
3ed1f964cb
Choose ports in range 17600-17650, so Tails can whitelist them ( #220 )
2016-02-27 18:03:42 +01:00
Micah Lee
683610e962
Update copyright year to 2016
2016-02-15 22:37:28 -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
e199946a8d
Display version string automatically in CLI, and in the status bar in GUI ( #251 )
2016-02-12 11:00:35 -08: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
e6e323fc9a
Don't access self.hs when using --local-only
2015-12-04 12:37:51 -08:00
Micah Lee
dc58921187
Add docstrings to all classes and methods ( fix #198 )
2015-11-15 19:01:20 -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
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
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
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
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
Thomas Waldmann
087102bde4
pep8: too long lines, reformat lines to < 120 chars. removed redundancy from long_description in setup.py.
...
note: pep8 usually recommends 80 chars, but I find that impractical and unnecessary - it's not 1980 any more when code was edited on 80x25 terminals.
i was a bit wondering about onionshare-launcher.py - it does a lot of imports, but does not use the imported names.
2014-11-18 18:59:48 +01:00
Thomas Waldmann
f5889d96dd
pep8: remove unexpected spaces around "=" in function/method head
2014-11-18 18:43:35 +01:00
Thomas Waldmann
152bc32ba7
pep8: no space after {[ or before ]}, reindent
2014-11-18 18:41:45 +01:00
Thomas Waldmann
aa2b59ec5d
pep8: 2 spaces before inline comments
2014-11-18 18:37:17 +01:00
Thomas Waldmann
63965fd2d9
pep8: blank after comma and colon
2014-11-18 18:35:09 +01:00
Thomas Waldmann
179eefae29
pep8: fix empty line counts
...
top level: 2, else 1
I also advice to not put "pass" into empty classes, but rather a docstring instead of "pass".
2014-11-18 18:29:32 +01:00