diff options
author | Joe Crayne <joe@jerkface.net> | 2020-01-12 22:57:39 -0500 |
---|---|---|
committer | Joe Crayne <joe@jerkface.net> | 2020-01-12 22:57:39 -0500 |
commit | c3866287f929e153a00293d3c548b26c7e910b9b (patch) | |
tree | fb44b4df043487bf1a76d454f6b7c35d291c7eaa /dht/ToxManager.hs | |
parent | 038fc07c26122bd65e07c079107abf8ab34f6278 (diff) |
Configure connection requests before having contact's dhtkey.
Diffstat (limited to 'dht/ToxManager.hs')
-rw-r--r-- | dht/ToxManager.hs | 2 |
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) |