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/examples | |
parent | 038fc07c26122bd65e07c079107abf8ab34f6278 (diff) |
Configure connection requests before having contact's dhtkey.
Diffstat (limited to 'dht/examples')
-rw-r--r-- | dht/examples/dhtd.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dht/examples/dhtd.hs b/dht/examples/dhtd.hs index c36508ef..d7c817ca 100644 --- a/dht/examples/dhtd.hs +++ b/dht/examples/dhtd.hs | |||
@@ -1581,7 +1581,11 @@ initTox runio opts ssvar keysdb mbxmpp invc = case porttox opts of | |||
1581 | -- | 1581 | -- |
1582 | -- > a +dhtkey KWoEx1XQHrluIoW.3nK6BFb6XCebKWr3nDDt3V7CcoJ | 1582 | -- > a +dhtkey KWoEx1XQHrluIoW.3nK6BFb6XCebKWr3nDDt3V7CcoJ |
1583 | , ("dhtkey", DHTAnnouncable { announceSendData = Left ("toxid", readEither, \me them addr -> do | 1583 | , ("dhtkey", DHTAnnouncable { announceSendData = Left ("toxid", readEither, \me them addr -> do |
1584 | dkey <- Tox.getContactInfo tox | 1584 | -- let mthem = Just ( TCP.tcpClient |
1585 | -- $ tcpKademliaClient | ||
1586 | -- $ toxOnionRoutes tox | ||
1587 | -- , them ) | ||
1588 | dkey <- Tox.getContactInfo Nothing tox | ||
1585 | sendMessage | 1589 | sendMessage |
1586 | (Tox.toxToRoute tox) | 1590 | (Tox.toxToRoute tox) |
1587 | (Tox.AnnouncedRendezvous them addr) | 1591 | (Tox.AnnouncedRendezvous them addr) |