summaryrefslogtreecommitdiff
path: root/dht/ToxManager.hs
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2020-01-12 22:57:39 -0500
committerJoe Crayne <joe@jerkface.net>2020-01-12 22:57:39 -0500
commitc3866287f929e153a00293d3c548b26c7e910b9b (patch)
treefb44b4df043487bf1a76d454f6b7c35d291c7eaa /dht/ToxManager.hs
parent038fc07c26122bd65e07c079107abf8ab34f6278 (diff)
Configure connection requests before having contact's dhtkey.
Diffstat (limited to 'dht/ToxManager.hs')
-rw-r--r--dht/ToxManager.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/dht/ToxManager.hs b/dht/ToxManager.hs
index 4d8910e2..dd8f5940 100644
--- a/dht/ToxManager.hs
+++ b/dht/ToxManager.hs
@@ -646,7 +646,7 @@ startConnecting0 tx them contact reason = do
646 let meth = SearchMethod (toxQSearch tox) onResult (nearNodes tox) (key2id them) 30 646 let meth = SearchMethod (toxQSearch tox) onResult (nearNodes tox) (key2id them) 30
647 where 647 where
648 onResult theirkey rendezvous = do 648 onResult theirkey rendezvous = do
649 dkey <- Tox.getContactInfo tox 649 dkey <- Tox.getContactInfo (Just (txTCP tx,them)) tox
650 let tr = Tox.toxToRoute tox 650 let tr = Tox.toxToRoute tox
651 route = Tox.AnnouncedRendezvous theirkey rendezvous 651 route = Tox.AnnouncedRendezvous theirkey rendezvous
652 dput XMan $ unwords [ take 8 (show $ key2id theirkey) 652 dput XMan $ unwords [ take 8 (show $ key2id theirkey)