diff options
Diffstat (limited to 'OnionRouter.hs')
-rw-r--r-- | OnionRouter.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OnionRouter.hs b/OnionRouter.hs index 96381e7f..018a6314 100644 --- a/OnionRouter.hs +++ b/OnionRouter.hs | |||
@@ -153,7 +153,7 @@ newOnionRouter :: TransportCrypto | |||
153 | -> (String -> IO ()) | 153 | -> (String -> IO ()) |
154 | -> IO ( OnionRouter | 154 | -> IO ( OnionRouter |
155 | , TVar ( ChaChaDRG | 155 | , TVar ( ChaChaDRG |
156 | , Word64Map (Either (MVar TCP.RelayPacket) | 156 | , Word64Map (Either (MVar (Bool,TCP.RelayPacket)) |
157 | (MVar (OnionMessage Identity))))) | 157 | (MVar (OnionMessage Identity))))) |
158 | newOnionRouter crypto perror = do | 158 | newOnionRouter crypto perror = do |
159 | drg0 <- drgNew | 159 | drg0 <- drgNew |
@@ -164,7 +164,7 @@ newOnionRouter crypto perror = do | |||
164 | return (rlog,pq,rm) | 164 | return (rlog,pq,rm) |
165 | ((tbl,tcptbl),tcp) <- do | 165 | ((tbl,tcptbl),tcp) <- do |
166 | (tcptbl, client) <- TCP.newClient crypto Left $ \case | 166 | (tcptbl, client) <- TCP.newClient crypto Left $ \case |
167 | Left v -> void . tryPutMVar v | 167 | Left v -> void . tryPutMVar v . (,) False |
168 | Right v -> \case | 168 | Right v -> \case |
169 | TCP.OnionPacketResponse x@(OnionAnnounceResponse n8 n24 _) -> do | 169 | TCP.OnionPacketResponse x@(OnionAnnounceResponse n8 n24 _) -> do |
170 | mod <- lookupSender' pq rlog localhost4 n8 | 170 | mod <- lookupSender' pq rlog localhost4 n8 |