enable-tor: When run as a regular user, test a connection back to the hidden service...
authorJoey Hess <joeyh@joeyh.name>
Sat, 24 Dec 2016 16:49:28 +0000 (12:49 -0400)
committerJoey Hess <joeyh@joeyh.name>
Sat, 24 Dec 2016 16:50:23 +0000 (12:50 -0400)
commite08691b393d0ea7db332146010ee18fae2708fe2
tree806ef2ca9419a8e899a64860534b0f3edc329980
parentf3a4b9191c65a1dcab78fcce351ff023523a7048
enable-tor: When run as a regular user, test a connection back to the hidden service over tor.

This way we know that after enable-tor, the tor hidden service is fully
published and working, and so there should be no problems with it at
pairing time.

It has to start up its own temporary listener on the hidden service. It
would be nice to have it start the remotedaemon running, so that extra
step is not needed afterwards. But, there may already be a remotedaemon
running, in communication with the assistant and we don't want to start
another one. I thought about trying to HUP any running remotedaemon, but
Windows does not make it easy to do that. In any case, having the user
start the remotedaemon themselves lets them know it needs to be running
to serve the hidden service.

This commit was sponsored by Boyd Stephen Smith Jr. on Patreon.
CHANGELOG
Command/EnableTor.hs
P2P/IO.hs
doc/tips/peer_to_peer_network_with_tor.mdwn
doc/todo/tor.mdwn