diff options
Diffstat (limited to 'src/Network/Tox/Onion/Transport.hs')
-rw-r--r-- | src/Network/Tox/Onion/Transport.hs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Network/Tox/Onion/Transport.hs b/src/Network/Tox/Onion/Transport.hs index d604a5c8..864e831f 100644 --- a/src/Network/Tox/Onion/Transport.hs +++ b/src/Network/Tox/Onion/Transport.hs | |||
@@ -891,12 +891,15 @@ parseDataToRoute crypto (OnionToRouteResponse dta, od) = do | |||
891 | $ Rendezvous (rendezvousPublic crypto) $ onionNodeInfo od ) | 891 | $ Rendezvous (rendezvousPublic crypto) $ onionNodeInfo od ) |
892 | r = either (const $ Right (OnionToRouteResponse dta,od)) Left e | 892 | r = either (const $ Right (OnionToRouteResponse dta,od)) Left e |
893 | -- parseDataToRoute OnionToRouteResponse decipherAndAuth: auth fail | 893 | -- parseDataToRoute OnionToRouteResponse decipherAndAuth: auth fail |
894 | case e of | ||
895 | Left _ -> hPutStrLn stderr $ "Failed keys: " ++ show (map (key2id . snd) ks) | ||
896 | Right _ -> return () | ||
894 | hPutStrLn stderr $ unlines | 897 | hPutStrLn stderr $ unlines |
895 | [ "parseDataToRoute " ++ either id (const "Right") e | 898 | [ "parseDataToRoute " ++ either id (const "Right") e |
896 | , " crypto inner.me =" ++ either id (\(pk,_,_) -> show $ key2id pk) eInner | 899 | , " crypto inner.me = " ++ either id (\(pk,_,_) -> show $ key2id pk) eInner |
897 | , " inner.you=" ++ either id (show . key2id . dataFromKey) eOuter | 900 | , " inner.them = " ++ either id (show . key2id . dataFromKey) eOuter |
898 | , " outer.me =" ++ show (key2id $ rendezvousPublic crypto) | 901 | , " outer.me = " ++ show (key2id $ rendezvousPublic crypto) |
899 | , " outer.you=" ++ show (key2id $ senderKey dta) | 902 | , " outer.them = " ++ show (key2id $ senderKey dta) |
900 | ] | 903 | ] |
901 | return r | 904 | return r |
902 | parseDataToRoute _ msg = return $ Right msg | 905 | parseDataToRoute _ msg = return $ Right msg |