Added git-remote-tor-annex, which allows git pull and push to the tor hidden service.
Almost working, but there's a bug in the relaying. Also, made tor hidden service setup pick a random port, to make it harder to port scan. This commit was sponsored by Boyd Stephen Smith Jr. on Patreon.
This commit is contained in:
parent
9cf9ee73f5
commit
070fb9e624
17 changed files with 254 additions and 61 deletions
|
@ -24,11 +24,11 @@ start :: CmdParams -> CommandStart
|
|||
start (suserid:uuid:[]) = case readish suserid of
|
||||
Nothing -> error "Bad userid"
|
||||
Just userid -> do
|
||||
(onionaddr, onionport, onionsocket) <- liftIO $
|
||||
(OnionAddress onionaddr, onionport) <- liftIO $
|
||||
addHiddenService userid uuid
|
||||
liftIO $ putStrLn $
|
||||
liftIO $ putStrLn $
|
||||
"tor-annex::" ++
|
||||
onionaddr ++ ":" ++
|
||||
show onionport ++ " " ++
|
||||
show onionsocket
|
||||
show onionport ++ " "
|
||||
stop
|
||||
start _ = error "Bad params"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue