diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-12-30 12:31:17 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-12-30 12:31:17 -0400 |
commit | b219be510053b14a669e0f44d58289c4cc71d91c (patch) | |
tree | 48b4224cb502559cf6140762aa28d3c9b05c7920 /RemoteDaemon | |
parent | dfbd303d662291479f0d4a5f97f5c649711f59fe (diff) |
refactor
Diffstat (limited to 'RemoteDaemon')
-rw-r--r-- | RemoteDaemon/Transport/Tor.hs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/RemoteDaemon/Transport/Tor.hs b/RemoteDaemon/Transport/Tor.hs index 2a2ceccca1..afa249b330 100644 --- a/RemoteDaemon/Transport/Tor.hs +++ b/RemoteDaemon/Transport/Tor.hs @@ -13,7 +13,6 @@ import Annex.Concurrent import Annex.ChangedRefs import RemoteDaemon.Types import RemoteDaemon.Common -import Utility.Tor import Utility.AuthToken import P2P.Protocol as P2P import P2P.IO @@ -26,7 +25,6 @@ import Messages import Git import Git.Command -import System.PosixCompat.User import Control.Concurrent import System.Log.Logger (debugM) import Control.Concurrent.STM @@ -41,9 +39,7 @@ server ichan th@(TransportHandle (LocalRepo r) _) = go checkstartservice = do u <- liftAnnex th getUUID - uid <- getRealUserID - let ident = fromUUID u - msock <- getHiddenServiceSocketFile torAppName uid ident + msock <- liftAnnex th torSocketFile case msock of Nothing -> do debugM "remotedaemon" "Tor hidden service not enabled" |