include tor-annex in hidden service directory names

To make it easier to manage/delete them etc.

Backwards compatablity is preserved for existing tor configs.
This commit is contained in:
Joey Hess 2016-12-21 14:31:27 -04:00
parent 872064e4a6
commit 405fbd25e1
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
4 changed files with 20 additions and 14 deletions

View file

@ -56,6 +56,6 @@ start os = do
where
go uuid userid = do
(onionaddr, onionport) <- liftIO $
addHiddenService "tor-annex" userid (fromUUID uuid)
addHiddenService torAppName userid (fromUUID uuid)
storeP2PAddress $ TorAnnex onionaddr onionport
stop