summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/DHT/Message.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/BitTorrent/DHT/Message.hs')
-rw-r--r--src/Network/BitTorrent/DHT/Message.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Network/BitTorrent/DHT/Message.hs b/src/Network/BitTorrent/DHT/Message.hs
index a2a6484a..85abf019 100644
--- a/src/Network/BitTorrent/DHT/Message.hs
+++ b/src/Network/BitTorrent/DHT/Message.hs
@@ -163,7 +163,7 @@ data GotPeers ip = GotPeers
163 { -- | If the queried node has no peers for the infohash, returned 163 { -- | If the queried node has no peers for the infohash, returned
164 -- the K nodes in the queried nodes routing table closest to the 164 -- the K nodes in the queried nodes routing table closest to the
165 -- infohash supplied in the query. 165 -- infohash supplied in the query.
166 peers :: Either [NodeAddr ip] [PeerAddr ip] 166 peers :: Either [NodeInfo ip] [PeerAddr ip]
167 167
168 -- | The token value is a required argument for a future 168 -- | The token value is a required argument for a future
169 -- announce_peer query. 169 -- announce_peer query.
@@ -171,7 +171,7 @@ data GotPeers ip = GotPeers
171 } deriving Typeable 171 } deriving Typeable
172 172
173peers_key :: BKey 173peers_key :: BKey
174peers_key = "peers" 174peers_key = "values"
175 175
176token_key :: BKey 176token_key :: BKey
177token_key = "token" 177token_key = "token"
@@ -204,7 +204,7 @@ data Announce = Announce
204 { -- | infohash of the torrent; 204 { -- | infohash of the torrent;
205 topic :: InfoHash 205 topic :: InfoHash
206 206
207 -- | the port /this/ peer is listenning; 207 -- | the port /this/ peer is listening;
208 , port :: PortNumber 208 , port :: PortNumber
209 209
210 -- | received in response to a previous get_peers query. 210 -- | received in response to a previous get_peers query.