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 | c532deba4a8020a8e777eaa6e205133c8c169c4a (patch) | |
tree | 610568e8eb5fb5661a5c2638d309d1fa13aff746 /RemoteDaemon | |
parent | 7cea120676d0315d8cf318f54aa64bfa621e0d5a (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 2a2ceccca..afa249b33 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" |