summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Network/Tox.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs
index e65110e1..61f0bab0 100644
--- a/src/Network/Tox.hs
+++ b/src/Network/Tox.hs
@@ -286,8 +286,9 @@ netCrypto tox myseckey theirpubkey = do
286 Nothing -> error "netCrypto: todo" 286 Nothing -> error "netCrypto: todo"
287 -- if no session: 287 -- if no session:
288 -- 1) send dht key, actually maybe send dht-key regardless 288 -- 1) send dht key, actually maybe send dht-key regardless
289 -- 2) send handshakes to last seen ip's, if any 289 -- 2) if no IP, search for their node(dht-key)
290 -- 290 -- 3) if no dht-key, output error message return empty
291 -- 4) send handshakes to last seen ip's, if any
291 292
292getContactInfo :: Tox -> IO DHT.DHTPublicKey 293getContactInfo :: Tox -> IO DHT.DHTPublicKey
293getContactInfo Tox{toxCryptoKeys,toxRouting} = join $ atomically $ do 294getContactInfo Tox{toxCryptoKeys,toxRouting} = join $ atomically $ do