summaryrefslogtreecommitdiff
path: root/src/Network/Tox/Onion/Transport.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/Tox/Onion/Transport.hs')
-rw-r--r--src/Network/Tox/Onion/Transport.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Network/Tox/Onion/Transport.hs b/src/Network/Tox/Onion/Transport.hs
index baadbbe8..39ea8c46 100644
--- a/src/Network/Tox/Onion/Transport.hs
+++ b/src/Network/Tox/Onion/Transport.hs
@@ -246,9 +246,10 @@ encodeOnionAddr getRoute (msg,OnionDestination _ ni (Just rid)) = do
246 return ( runPut $ putRequest $ wrapForRoute msg ni route 246 return ( runPut $ putRequest $ wrapForRoute msg ni route
247 , nodeAddr $ routeNodeA route) 247 , nodeAddr $ routeNodeA route)
248 mapM' f x = do 248 mapM' f x = do
249 let _ = x :: Maybe OnionRoute
249 hPutStrLn stderr $ "ONION encode sending to " ++ show ni 250 hPutStrLn stderr $ "ONION encode sending to " ++ show ni
250 hPutStrLn stderr $ "ONION encode getRoute -> " ++ show (mapM (\y -> map ($ y) [routeNodeA,routeNodeB,routeNodeC]) x) 251 hPutStrLn stderr $ "ONION encode getRoute -> " ++ show (fmap (\y -> map ($ y) [routeNodeA,routeNodeB,routeNodeC]) x)
251 mapM f x 252 mapM f x -- ONION encode getRoute -> Nothing
252 getRoute ni rid >>= mapM' go 253 getRoute ni rid >>= mapM' go
253 254
254 255