diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2013-12-03 18:24:28 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2013-12-03 18:24:28 +0400 |
commit | 6228854ace1685d9e85ad939a1344a306376f96f (patch) | |
tree | e347b6da29a183f28434de80cf523bf0862d5045 /src/Network/BitTorrent | |
parent | ac8cd57442c970aa76e30d5f48dcb5c5cefe0adf (diff) |
Minor changes
Diffstat (limited to 'src/Network/BitTorrent')
-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 |