diff options
author | joe <joe@jerkface.net> | 2017-10-13 16:35:02 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2017-10-13 16:35:02 -0400 |
commit | f1a79aef9799176b52efb6197aaf7c2b5a8f14ad (patch) | |
tree | feb8727a39d3170f2b60a771c620ab3600199add /examples | |
parent | b5df42236969b38bbddcc47cb5cbfdc94a7d3393 (diff) |
Show rendezvous addresses for toxid search results.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/dhtd.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs index 37f16f02..2b0191a3 100644 --- a/examples/dhtd.hs +++ b/examples/dhtd.hs | |||
@@ -595,13 +595,14 @@ main = do | |||
595 | -- _todo :: IO Tox.AnnounceResponse | 595 | -- _todo :: IO Tox.AnnounceResponse |
596 | -- -> IO ([Tox.NodeInfo], [Crypto.PubKey.Curve25519.PublicKey], b0) | 596 | -- -> IO ([Tox.NodeInfo], [Crypto.PubKey.Curve25519.PublicKey], b0) |
597 | Tox.unwrapAnnounceResponse | 597 | Tox.unwrapAnnounceResponse |
598 | <$> Tox.announceH (Tox.toxRouting tox) | 598 | <$> clientAddress (Tox.toxDHT tox) Nothing |
599 | <*> Tox.announceH (Tox.toxRouting tox) | ||
599 | (Tox.toxTokens tox) | 600 | (Tox.toxTokens tox) |
600 | (Tox.toxAnnouncedKeys tox) | 601 | (Tox.toxAnnouncedKeys tox) |
601 | (Tox.OnionDestination ni Nothing) | 602 | (Tox.OnionDestination ni Nothing) |
602 | (Tox.AnnounceRequest zeros32 nid Tox.zeroID)) | 603 | (Tox.AnnounceRequest zeros32 nid Tox.zeroID)) |
603 | show -- PublicKey | 604 | show -- PublicKey |
604 | (const Nothing)) -- TODO: show token | 605 | (fmap show)) |
605 | ] | 606 | ] |
606 | , dhtParseId = readEither :: String -> Either String Tox.NodeId | 607 | , dhtParseId = readEither :: String -> Either String Tox.NodeId |
607 | , dhtSearches = toxSearches | 608 | , dhtSearches = toxSearches |