typo
This commit is contained in:
parent
7f2e7fa271
commit
249ddb5953
2 changed files with 3 additions and 3 deletions
|
@ -166,7 +166,7 @@ performPairing remotename addrs = do
|
||||||
case Wormhole.toCode l of
|
case Wormhole.toCode l of
|
||||||
Just code
|
Just code
|
||||||
| code /= ourcode -> do
|
| code /= ourcode -> do
|
||||||
putStrLn "Pairing in process..."
|
putStrLn "Exchanging pairing data..."
|
||||||
return code
|
return code
|
||||||
| otherwise -> do
|
| otherwise -> do
|
||||||
putStrLn "Oops -- You entered this repository's pairing code. We need the pairing code of the *other* repository."
|
putStrLn "Oops -- You entered this repository's pairing code. We need the pairing code of the *other* repository."
|
||||||
|
@ -258,7 +258,7 @@ finishPairing :: Int -> RemoteName -> HalfAuthToken -> PairData -> Annex Pairing
|
||||||
finishPairing retries remotename (HalfAuthToken ourhalf) (PairData (HalfAuthToken theirhalf) theiraddrs) = do
|
finishPairing retries remotename (HalfAuthToken ourhalf) (PairData (HalfAuthToken theirhalf) theiraddrs) = do
|
||||||
case (toAuthToken (ourhalf <> theirhalf), toAuthToken (theirhalf <> ourhalf)) of
|
case (toAuthToken (ourhalf <> theirhalf), toAuthToken (theirhalf <> ourhalf)) of
|
||||||
(Just ourauthtoken, Just theirauthtoken) -> do
|
(Just ourauthtoken, Just theirauthtoken) -> do
|
||||||
liftIO $ putStrLn $ "Successfully exchanged pairing data. Connecting to " ++ remotename ++ " ..."
|
liftIO $ putStrLn $ "Successfully exchanged pairing data. Connecting to " ++ remotename ++ "..."
|
||||||
storeP2PAuthToken ourauthtoken
|
storeP2PAuthToken ourauthtoken
|
||||||
go retries theiraddrs theirauthtoken
|
go retries theiraddrs theirauthtoken
|
||||||
_ -> return ReceiveFailed
|
_ -> return ReceiveFailed
|
||||||
|
|
|
@ -70,7 +70,7 @@ addHiddenService uid ident = do
|
||||||
-- service and generate the hostname file for it.
|
-- service and generate the hostname file for it.
|
||||||
reloaded <- anyM (uncurry boolSystem)
|
reloaded <- anyM (uncurry boolSystem)
|
||||||
[ ("systemctl", [Param "reload", Param "tor"])
|
[ ("systemctl", [Param "reload", Param "tor"])
|
||||||
, ("sefvice", [Param "tor", Param "reload"])
|
, ("service", [Param "tor", Param "reload"])
|
||||||
]
|
]
|
||||||
unless reloaded $
|
unless reloaded $
|
||||||
giveup "failed to reload tor, perhaps the tor service is not running"
|
giveup "failed to reload tor, perhaps the tor service is not running"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue