diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Network/BitTorrent/Tracker/RPC/Message.hs | 4 | ||||
-rw-r--r-- | src/Network/BitTorrent/Tracker/Wai.hs | 9 |
2 files changed, 2 insertions, 11 deletions
diff --git a/src/Network/BitTorrent/Tracker/RPC/Message.hs b/src/Network/BitTorrent/Tracker/RPC/Message.hs index 4a5aa789..26e57760 100644 --- a/src/Network/BitTorrent/Tracker/RPC/Message.hs +++ b/src/Network/BitTorrent/Tracker/RPC/Message.hs | |||
@@ -227,7 +227,7 @@ instance QueryValueLike Int where | |||
227 | instance QueryLike AnnounceQuery where | 227 | instance QueryLike AnnounceQuery where |
228 | toQuery AnnounceQuery {..} = | 228 | toQuery AnnounceQuery {..} = |
229 | toQuery reqProgress ++ | 229 | toQuery reqProgress ++ |
230 | [ ("info_hash", toQueryValue reqInfoHash) | 230 | [ ("info_hash", toQueryValue reqInfoHash) -- TODO use 'paramName' |
231 | , ("peer_id" , toQueryValue reqPeerId) | 231 | , ("peer_id" , toQueryValue reqPeerId) |
232 | , ("port" , toQueryValue reqPort) | 232 | , ("port" , toQueryValue reqPort) |
233 | , ("ip" , toQueryValue reqIP) | 233 | , ("ip" , toQueryValue reqIP) |
@@ -376,7 +376,7 @@ instance Default AnnounceQueryExt where | |||
376 | 376 | ||
377 | instance QueryLike AnnounceQueryExt where | 377 | instance QueryLike AnnounceQueryExt where |
378 | toQuery AnnounceQueryExt {..} = | 378 | toQuery AnnounceQueryExt {..} = |
379 | [ ("compact", toQueryFlag <$> extCompact) | 379 | [ ("compact", toQueryFlag <$> extCompact) -- TODO use 'paramName' |
380 | , ("no_peer_id", toQueryFlag <$> extNoPeerId) | 380 | , ("no_peer_id", toQueryFlag <$> extNoPeerId) |
381 | ] | 381 | ] |
382 | where | 382 | where |
diff --git a/src/Network/BitTorrent/Tracker/Wai.hs b/src/Network/BitTorrent/Tracker/Wai.hs index f290c380..f4cff5dc 100644 --- a/src/Network/BitTorrent/Tracker/Wai.hs +++ b/src/Network/BitTorrent/Tracker/Wai.hs | |||
@@ -1,12 +1,3 @@ | |||
1 | -- supported extensions: | ||
2 | -- | ||
3 | -- no_peer_id - do not send peer id if no_peer_id=1 specified | ||
4 | -- http://www.bittorrent.org/beps/bep_0023.html | ||
5 | -- | ||
6 | -- compact - compact=1 or compact=0 | ||
7 | -- http://permalink.gmane.org/gmane.network.bit-torrent.general/4030 | ||
8 | -- | ||
9 | -- | ||
10 | {-# LANGUAGE RecordWildCards #-} | 1 | {-# LANGUAGE RecordWildCards #-} |
11 | module Network.BitTorrent.Tracker.Wai | 2 | module Network.BitTorrent.Tracker.Wai |
12 | ( tracker | 3 | ( tracker |