summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/DHT/Routing.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/BitTorrent/DHT/Routing.hs')
-rw-r--r--src/Network/BitTorrent/DHT/Routing.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network/BitTorrent/DHT/Routing.hs b/src/Network/BitTorrent/DHT/Routing.hs
index 38207be5..8a6849a1 100644
--- a/src/Network/BitTorrent/DHT/Routing.hs
+++ b/src/Network/BitTorrent/DHT/Routing.hs
@@ -460,7 +460,7 @@ compatibleNodeId tbl = genBucketSample prefix br
460 where 460 where
461 br = bucketRange (L.length (shape tbl) - 1) True 461 br = bucketRange (L.length (shape tbl) - 1) True
462 bs = BS.pack $ take nodeIdSize $ tablePrefix tbl ++ repeat 0 462 bs = BS.pack $ take nodeIdSize $ tablePrefix tbl ++ repeat 0
463 prefix = NodeId bs 463 prefix = asNodeId bs
464 464
465tablePrefix :: Table ip -> [Word8] 465tablePrefix :: Table ip -> [Word8]
466tablePrefix = map (packByte . take 8 . (++repeat False)) 466tablePrefix = map (packByte . take 8 . (++repeat False))