aboutsummaryrefslogtreecommitdiff
path: root/Utility
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-11-29 17:52:46 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-11-29 17:52:46 -0400
commit51913ac64aca1e02ccd0c82007ad52c070f7331b (patch)
treeb9abe47a5961275766997e719e840f3c49d75a51 /Utility
parent698bf9c9efa87cc2345f174f0a62185f47760485 (diff)
cleanup
Diffstat (limited to 'Utility')
-rw-r--r--Utility/Tor.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Utility/Tor.hs b/Utility/Tor.hs
index e63bd82d4..5457a5a24 100644
--- a/Utility/Tor.hs
+++ b/Utility/Tor.hs
@@ -29,7 +29,6 @@ type UniqueIdent = String
connectHiddenService :: OnionAddress -> OnionPort -> IO Socket
connectHiddenService (OnionAddress address) port = do
- hPutStrLn stderr $ show ("connect to", address, port)
(s, _) <- socksConnect torsockconf socksaddr
return s
where
@@ -122,7 +121,7 @@ hiddenServiceHostnameFile uid ident = hiddenServiceDir uid ident </> "hostname"
-- That should not be a problem if the UniqueIdent is around the length of
-- a UUID.
hiddenServiceSocketFile :: UserID -> UniqueIdent -> FilePath
-hiddenServiceSocketFile uid ident = etcDir </> "hidden_services" </> show uid ++ "_" ++ show ident </> "s"
+hiddenServiceSocketFile uid ident = etcDir </> "hidden_services" </> show uid ++ "_" ++ ident </> "s"
-- | Sets up the directory for the socketFile, with appropriate
-- permissions. Must run as root.