actually check p2p authtokens for tor connections
This commit was sponsored by Ethan Aubin.
This commit is contained in:
parent
b88e44ea9a
commit
e714e0f67a
3 changed files with 49 additions and 29 deletions
|
@ -60,7 +60,13 @@ connectService address port service = do
|
|||
myuuid <- getUUID
|
||||
g <- Annex.gitRepo
|
||||
h <- liftIO $ torHandle =<< connectHiddenService address port
|
||||
runNetProtoHandle h h g $ do
|
||||
let runenv = RunEnv
|
||||
{ runRepo = g
|
||||
, runCheckAuth = const False
|
||||
, runIhdl = h
|
||||
, runOhdl = h
|
||||
}
|
||||
runNetProtoHandle runenv $ do
|
||||
v <- auth myuuid authtoken
|
||||
case v of
|
||||
Just _theiruuid -> connect service stdin stdout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue