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

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

22 Commits

Author SHA1 Message Date
05ce1aace5
Started a test case for the tor service 2024-11-09 01:11:14 +02:00
28e021bec3
Fix publishing the onion - supposed to be done every 4 hours 2024-10-23 02:29:29 +03:00
c342fb0156
Don't start the tor service with --no-incoming if there is a system one 2024-10-23 02:29:29 +03:00
1c75a3cdea
Bump version to 0.3.4 2024-10-23 02:29:28 +03:00
ffba4c61f6
Don't advertise own peer if run with --no-incoming or reported IP is 127.0.0.1 2024-10-23 02:29:28 +03:00
f7d7977d1a
Improve the logic of starting tor:
set missing initial port, exit on failure,
increase timeout to 90 reducing number of attempts to 20.
2024-10-23 02:29:27 +03:00
8c1454e572
Conform tor setup to the restrictions for incoming and outgoing connections 2024-10-23 02:29:27 +03:00
175d964d70
Don't try to resolve DNS seeds if tor is enabled 2024-10-23 02:29:27 +03:00
0a81885880
Test process with --tor, set env variable HOME for tor 2024-10-23 02:29:26 +03:00
329ba585a9
Update command line dump in README 2024-10-23 02:29:26 +03:00
b640938981
Complete help string on the --tor arg 2024-10-23 02:29:26 +03:00
a23bb9d12e
Skip TLS also for incoming connections using tor 2024-10-23 02:29:25 +03:00
7802334052
Add a stem requirement for testing and a new extra - 'tor' 2024-10-23 02:29:25 +03:00
291ea9b195
A rough implementation of onion service based on pybitmessage plugin 2024-10-23 02:29:25 +03:00
638f613c03
A test for encoding and decoding of onion peer object 2024-10-23 02:29:24 +03:00
c385b43a09
Parse socks_proxy arg with urllib.parse and support more parameters 2024-10-23 02:29:24 +03:00
f7e16eecfe
Install and start tor in buildbot 2024-10-23 02:29:24 +03:00
103c7a6cfa
Add a simple blind test for process running with --socks-proxy 2024-10-23 02:29:23 +03:00
4f65416815
Add an extra 'proxy' with a requirement of PySocks 2024-10-23 02:29:23 +03:00
36eb04003d
Do not start TLS in onion connections 2024-10-23 02:29:22 +03:00
1286ecdc6d
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.
2024-10-23 02:29:22 +03:00
a13c1c0b1b
A minimal implementation of proxy for outgoing connections using PySocks,
special arg --tor currently just sets host and port for the socks_proxy.
2024-10-23 02:29:05 +03:00