summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Core/PeerAddr.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/BitTorrent/Core/PeerAddr.hs')
-rw-r--r--src/Network/BitTorrent/Core/PeerAddr.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Network/BitTorrent/Core/PeerAddr.hs b/src/Network/BitTorrent/Core/PeerAddr.hs
index 63885144..b62cb945 100644
--- a/src/Network/BitTorrent/Core/PeerAddr.hs
+++ b/src/Network/BitTorrent/Core/PeerAddr.hs
@@ -240,6 +240,10 @@ instance (Serialize a) => Serialize (PeerAddr a) where
240instance Default (PeerAddr IPv4) where 240instance Default (PeerAddr IPv4) where
241 def = "127.0.0.1:6881" 241 def = "127.0.0.1:6881"
242 242
243-- | @127.0.0.1:6881@
244instance Default (PeerAddr IP) where
245 def = IPv4 <$> def
246
243-- | Example: 247-- | Example:
244-- 248--
245-- @peerPort \"127.0.0.1:6881\" == 6881@ 249-- @peerPort \"127.0.0.1:6881\" == 6881@