Commit Graph

55 Commits

Author SHA1 Message Date
shortcutme b85477787d
Workaround for Tor utf8 cookie file path encoding bug on Windows 2020-02-25 16:46:21 +01:00
shortcutme 6a1235bd45
Remove old Gevent RLock support 2020-02-25 16:45:55 +01:00
shortcutme 2de35266c4
Rev4208, Add details on Tor connection error 2019-09-10 15:43:42 +02:00
shortcutme fcb3ac3917
Only change default proxy to tor in tor always mode 2019-08-17 20:33:43 +02:00
shortcutme ff32f822ba
Raise exception instead of using assert 2019-07-03 18:35:55 +02:00
shortcutme 62401b24ec
Add r string literal for regexps 2019-07-01 16:24:23 +02:00
shortcutme 6c4440c2d1
Less verbose Tor controller logging 2019-05-30 04:28:57 +02:00
radfish f6e3a74567 [setuptools packaging] access modules via imports (#1969) 2019-04-15 12:31:33 +02:00
shortcutme 9546ed0bb6
Try to connect to tor before starting own one under windows 2019-03-27 03:11:38 +01:00
shortcutme fd895d0ef5
Tormanager only disconnect if connected 2019-03-16 00:08:04 +01:00
shortcutme 8220272953
Py3 encoding support in TorManager 2019-03-16 00:05:23 +01:00
shortcutme c8fc1ebefa
Remove tor downloading for windows 2019-03-16 00:04:09 +01:00
shortcutme ac9531eb98
Use global socks module 2019-03-16 00:03:05 +01:00
shortcutme b0b9a4d33c
Change to Python3 coding style 2019-03-15 21:06:59 +01:00
shortcutme 468666cdc8
Optimize getOnion function with less lock 2019-01-20 16:51:42 +01:00
shortcutme 00972f5d73
Fix stuck starting when tor client is already running 2019-01-20 16:51:13 +01:00
shortcutme bffe6e7a32
Tor service ipv6 support 2019-01-20 16:50:55 +01:00
shortcutme 8738817eab
Fix tor logging on message fail 2018-08-26 02:56:41 +02:00
redfish 9bd10d5102 TorManager: correct the Tor error log message
On Linux, there is no self-bundled Tor, so the message was not correct
because it was stating that self-bundled Tor was being started.
2018-08-02 23:47:24 +00:00
redfish 4c62840cef TorManager: escalate log error for Tor auth
This errorr is fatal for Tor usage (on Linux). Let's make escalate
it. Also see the previous commit, without which, this error doesn't
even get printed at all.
2018-08-02 23:42:50 +00:00
shortcutme b87ad9cd2f
Fix disabled tor startup 2018-07-10 03:31:39 +02:00
shortcutme 329e885da7
Wait tor connections until tor client startup 2018-06-03 12:46:47 +02:00
saber28 94bc33f61c
Improve Orbot Compatibility
Use password auth first to work with orbot
2018-05-05 09:58:14 +08:00
shortcutme d7c1c0d04c
Tor subprocess check separate function 2018-04-29 02:45:56 +02:00
shortcutme 4fa43fdf60
Trust that shutdown signal will kill tor 2018-04-29 02:45:39 +02:00
shortcutme 24a7c26819
Fix tor status logging with foreign languages 2018-04-28 21:53:36 +02:00
shortcutme 13019941b3
Make sure to shutdown tor client if we started it 2018-04-28 21:53:12 +02:00
shortcutme a0451065a2
Start with bridges if tor_use_bridges enabled 2018-04-28 21:52:01 +02:00
shortcutme 54b87c19b1
Fix TorManager without main module loaded 2018-04-28 21:51:35 +02:00
shortcutme 8828f21f2e
Always create TorManager object with ConnectionServer, move tormanager start to sperate function 2018-04-28 21:51:14 +02:00
shortcutme 7fee135bf5
Check if we can enable meek bridges 2018-04-28 21:50:01 +02:00
shortcutme c401cabee7
Only start separate HS for every site in tor always mode 2018-03-14 22:33:41 +01:00
shortcutme 1549f2aa4d
Don't share global HS with any site 2018-03-14 22:33:21 +01:00
shortcutme 89beb12d59
Set up HS for global at startup 2018-03-14 22:32:49 +01:00
shortcutme 4083e552fd
Formatting 2018-03-14 22:32:28 +01:00
shortcutme 39568737dd
Tor connect error and uPnP punch error are not critical 2018-02-10 15:33:54 +01:00
shortcutme 3b7750c24e
Send serverChanged event on Tor status change 2017-11-05 23:43:03 +01:00
shortcutme d8453384ab
Separate socket creation and connection to be able to cancel it 2017-10-03 14:30:19 +02:00
shortcutme 75d94aaf06
Choose from current hidden services if over tor_hs_limit 2017-04-09 11:58:18 +02:00
MuxZeroNet 0aa6358938 Update TorManager.py 2017-02-23 23:39:45 +00:00
MuxZeroNet a724dd472f Update TorManager.py 2017-02-23 23:09:47 +00:00
MuxZeroNet ddc3f72afb Make TorManager accept plugins 2017-02-17 01:17:51 +00:00
shortcutme 2113b03a42
Rev1845, Hide Tor console window 2017-01-23 00:31:52 +01:00
shortcutme a0c3d7f8a6
Rev1833, Fix utf8 system paths 2017-01-22 21:22:53 +01:00
anonym 6679baadbb TorManager.send(): read until repsonse terminator.
Tor command responses terminate with "250 OK\r\n" so we have to read
until that sequence is encountered.

The previous implementation is racy: after sending a command it would
accept whatever that is found on the socket as its response, no matter
if it is correctly terminated or not.

This commit fixes: https://github.com/HelloZeroNet/ZeroNet/issues/756
2017-01-20 10:53:31 +01:00
shortcutme 77e07dd5b5
Rev1815, Request tor version using GETINFO 2017-01-11 19:56:33 +01:00
erqan a3f62f56f6 tor_password argument... 2016-12-27 17:15:02 +03:00
shortcutme 9a1735f37d Rev1791, Fix gevent 1.2 compatibility 2016-12-27 11:37:58 +01:00
shortcutme 2a7f03af8a Try to reconnect to Tor on send error 2016-09-04 18:00:08 +02:00
HelloZeroNet 0ccc81f46b Try to fix non-english Tor error messages 2016-03-18 19:17:15 +01:00