summaryrefslogtreecommitdiff
path: root/src/Network/Tox.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/Tox.hs')
-rw-r--r--src/Network/Tox.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs
index 68714224..41deff42 100644
--- a/src/Network/Tox.hs
+++ b/src/Network/Tox.hs
@@ -449,7 +449,9 @@ newTox keydb addr mbSessionsState suppliedDHTKey = do
449 dhtclient <- newClient drg dhtnet0 DHT.classify (myAddr tbl4 tbl6) (DHT.handlers crypto . mkrouting) id 449 dhtclient <- newClient drg dhtnet0 DHT.classify (myAddr tbl4 tbl6) (DHT.handlers crypto . mkrouting) id
450 $ \client net -> onInbound (DHT.updateRouting client (mkrouting client) orouter) net 450 $ \client net -> onInbound (DHT.updateRouting client (mkrouting client) orouter) net
451 451
452 orouter <- forkRouteBuilder orouter $ \nid ni -> fmap (\(_,ns,_)->ns) <$> DHT.getNodes dhtclient nid ni 452 orouter' <- forkRouteBuilder orouter
453 $ \nid ni -> fmap (\(_,ns,_)->ns)
454 <$> DHT.getNodes dhtclient (DHT.nodesOfInterest $ mkrouting dhtclient) nid ni
453 455
454 toks <- do 456 toks <- do
455 nil <- nullSessionTokens 457 nil <- nullSessionTokens
@@ -459,7 +461,7 @@ newTox keydb addr mbSessionsState suppliedDHTKey = do
459 onionclient <- newClient oniondrg onionnet (const Onion.classify) 461 onionclient <- newClient oniondrg onionnet (const Onion.classify)
460 (getOnionAlias crypto $ R.thisNode <$> readTVar (DHT.routing4 $ mkrouting dhtclient)) 462 (getOnionAlias crypto $ R.thisNode <$> readTVar (DHT.routing4 $ mkrouting dhtclient))
461 (const $ Onion.handlers onionnet (mkrouting dhtclient) toks keydb) 463 (const $ Onion.handlers onionnet (mkrouting dhtclient) toks keydb)
462 (hookQueries orouter DHT.transactionKey) 464 (hookQueries orouter' DHT.transactionKey)
463 (const id) 465 (const id)
464 466
465 return Tox 467 return Tox