summaryrefslogtreecommitdiff
path: root/dht/src/Network/Tox/TCP.hs
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2019-11-28 12:05:47 -0500
committerJoe Crayne <joe@jerkface.net>2020-01-01 22:50:28 -0500
commit62be467e38b5919baeed90784ac1b62a3e256649 (patch)
tree13ea603a52e1c4972fedda18a306da0c27ae63af /dht/src/Network/Tox/TCP.hs
parent3ebd7ae11d7a86798b31bdb17af9797ba5e09f1d (diff)
* Fixed accidental usage of TCP rather than UDP port.
* Onion: special handling for localhost addresses.
Diffstat (limited to 'dht/src/Network/Tox/TCP.hs')
-rw-r--r--dht/src/Network/Tox/TCP.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/dht/src/Network/Tox/TCP.hs b/dht/src/Network/Tox/TCP.hs
index ca4ca817..5dfb8382 100644
--- a/dht/src/Network/Tox/TCP.hs
+++ b/dht/src/Network/Tox/TCP.hs
@@ -233,7 +233,7 @@ getUDPNodes' tcp seeking dst0 = do
233 , method = OnionPacketID -- meth 233 , method = OnionPacketID -- meth
234 , wrapQuery = \n8 src gateway x -> (,) True $ 234 , wrapQuery = \n8 src gateway x -> (,) True $
235 OnionPacket n24 $ Addressed (UDP.nodeAddr dst) 235 OnionPacket n24 $ Addressed (UDP.nodeAddr dst)
236 $ wrapOnionPure b (wrap2 n24) (nodeAddr gateway') 236 $ wrapOnionPure b (wrap2 n24) (UDP.nodeAddr $ udpNodeInfo gateway')
237 $ wrapOnionPure c (wrap1 n24) (UDP.nodeAddr dst) 237 $ wrapOnionPure c (wrap1 n24) (UDP.nodeAddr dst)
238 $ NotForwarded $ encryptPayload (wrap0 n24) 238 $ NotForwarded $ encryptPayload (wrap0 n24)
239 $ OnionAnnounce Asymm 239 $ OnionAnnounce Asymm