WIP: Add support for tor using PySocks and optionally stem #2

Draft
lee.miller wants to merge 20 commits from lee.miller/MiNode:tor into v0.3
Contributor

Hi!

The code is not ideal and not fully covered by tests. But there is no more monkeypatching, so tor may be used together with i2p and you can remove the old tor branch.

Hi! The code is not ideal and not fully covered by tests. But there is no more monkeypatching, so tor may be used together with i2p and you can remove the old tor branch.
lee.miller added 20 commits 2023-12-05 23:04:05 +00:00
dfd1cb6399
A minimal implementation of proxy for outgoing connections using PySocks,
special arg --tor currently just sets host and port for the socks_proxy.
d0e62f56e6
Implement decoding and connection to onion peer:
make a separate a bit controversial class structure.OnionPeer(),
having .from_object() and .to_object() instead of .from_bytes() etc.
fb17c35032
Improve the logic of starting tor:
set missing initial port, exit on failure,
increase timeout to 90 reducing number of attempts to 20.
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b lee.miller-tor v0.3
git pull tor

Step 2:

Merge the changes and update on Gitea.
git checkout v0.3
git merge --no-ff lee.miller-tor
git push origin v0.3
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Bitmessage/MiNode#2
No description provided.