-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Listen on onion-service, dial onion services #24
feat: Listen on onion-service, dial onion services #24
Conversation
2f3020b
to
fefca98
Compare
@umgefahren This works as a proof-of-concept. Can you take a look regarding the general direction this PR is going?
|
@Einliterflasche You can give this a review as well once it's ready. |
I think you are going in the right direction. Although I would suggest you put this behind a feature gate |
673f6ee
to
f4e71fa
Compare
…es which dont match filter
@umgefahren @Einliterflasche This is ready for review |
e050f37
to
6295fba
Compare
6295fba
to
0a973c8
Compare
@umgefahren Do you have time to give this a review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some night pick. Otherwise LGTM 🚀
// TODO: We need to do this because otherwise the status of the onion service is gonna be [`Shutdown`] | ||
// when we first poll it and then the swarm will not pull it again (?). I don't know why this is the case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please look into this. But this can also be fixed later.
This pull requests - Adds rust native support for the `asb` to listen on an onion service. Previously we were depedent on a seperately running `torc` client. Instead we now use [arti](https://tpo.pages.torproject.net/core/arti/), a rust implementation of the tor protocol. - Removes the `tor.control_port` and `tor.socks5_port` property from the config of the `asb` - Adds a new `tor.register_hidden_service` boolean property to the config of the `asb` which when enabled automatically runs a hidden service at startup - Adds a new `tor.hidden_service_num_intro_points` config property to specify how many introduction points to register the onion service at - Adds support for the `cli` to dial onion addresses This is dependent on umgefahren/libp2p-tor#24 Closes #16
This PR adds support for listening on onion services (
/onion3/*:x/
addresses, where*
is an onion address andx
an arbitrary port)It also add support for dialing them.
Closes #19