From 1100263e70da68607882e7a63d945e0a1f1fea90 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 21 Nov 2016 19:24:55 -0400 Subject: pull/push over tor working now Still a couple bugs: * Closing the connection to the server leaves git upload-pack / receive-pack running, which could be used to DOS. * Sometimes the data is transferred, but it fails at the end, sometimes with: git-remote-tor-annex: : commitBuffer: resource vanished (Broken pipe) Must be a race condition around shutdown. --- Utility/Tor.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Utility/Tor.hs') diff --git a/Utility/Tor.hs b/Utility/Tor.hs index eedee8c6b..0900fb87e 100644 --- a/Utility/Tor.hs +++ b/Utility/Tor.hs @@ -17,8 +17,12 @@ import qualified Data.ByteString.UTF8 as BU8 import qualified System.Random as R type OnionPort = Int + newtype OnionAddress = OnionAddress String + deriving (Show) + type OnionSocket = FilePath + type UniqueIdent = String connectHiddenService :: OnionAddress -> OnionPort -> IO Socket -- cgit v1.2.3