summaryrefslogtreecommitdiff
path: root/examples/dhtd.hs
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2019-01-31 04:26:08 -0500
committerJoe Crayne <joe@jerkface.net>2019-01-31 04:26:08 -0500
commitadb133efa0edf247a3a99b07872d418d899b67d3 (patch)
treef3407a779004dc7e0b36c8d8275f70c77b3d4f95 /examples/dhtd.hs
parent46b1ebb81838dc7ecf94533b25cd51e84bd0cf04 (diff)
Enable toxtcp network for IPv4-only mode.
Diffstat (limited to 'examples/dhtd.hs')
-rw-r--r--examples/dhtd.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index e111787c..2772416b 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -1566,9 +1566,9 @@ initTox opts ssvar keysdb mbxmpp invc = case porttox opts of
1566 } 1566 }
1567 dhts = Map.fromList $ 1567 dhts = Map.fromList $
1568 ("tox4", toxDHT Tox.routing4 Want_IP4) 1568 ("tox4", toxDHT Tox.routing4 Want_IP4)
1569 : if ip6tox opts 1569 : (if ip6tox opts
1570 then [ ("tox6", toxDHT Tox.routing6 Want_IP6) ] 1570 then [ ("tox6", toxDHT Tox.routing6 Want_IP6) ]
1571 else [] 1571 else [])
1572 ++ [("toxtcp", tcpDHT)] 1572 ++ [("toxtcp", tcpDHT)]
1573 ips :: IO [SockAddr] 1573 ips :: IO [SockAddr]
1574 ips = readExternals Tox.nodeAddr [ Tox.routing4 $ Tox.toxRouting tox 1574 ips = readExternals Tox.nodeAddr [ Tox.routing4 $ Tox.toxRouting tox