add readonly mode to serve P2P protocol
This will be used by git-annex-shell when configured to be readonly. This commit was sponsored by Nick Daly on Patreon.
This commit is contained in:
parent
bd8c13e75b
commit
572a45ae00
2 changed files with 33 additions and 18 deletions
|
@ -128,7 +128,7 @@ serveClient th u r q = bracket setup cleanup start
|
|||
authed conn theiruuid =
|
||||
bracket watchChangedRefs (liftIO . maybe noop stopWatchingChangedRefs) $ \crh -> do
|
||||
v' <- runFullProto (Serving theiruuid crh) conn $
|
||||
P2P.serveAuthed u
|
||||
P2P.serveAuthed P2P.ServeReadWrite u
|
||||
case v' of
|
||||
Right () -> return ()
|
||||
Left e -> liftIO $ debugM "remotedaemon" ("Tor connection error: " ++ e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue