From aab30811698a3b97173043e56e97f46cd3a91776 Mon Sep 17 00:00:00 2001 From: joe Date: Sun, 22 Jan 2017 01:22:18 -0500 Subject: Store external port number, as well as IP. --- src/Network/BitTorrent/DHT/Routing.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Network/BitTorrent/DHT/Routing.hs') diff --git a/src/Network/BitTorrent/DHT/Routing.hs b/src/Network/BitTorrent/DHT/Routing.hs index f9d64eea..c230929e 100644 --- a/src/Network/BitTorrent/DHT/Routing.hs +++ b/src/Network/BitTorrent/DHT/Routing.hs @@ -327,11 +327,11 @@ defaultBucketCount = 20 data Info ip = Info { myBuckets :: Table ip , myNodeId :: NodeId - , myAddress :: ip + , myAddress :: SockAddr } deriving (Eq, Show, Generic) -instance (Eq ip, Serialize ip) => Serialize (Info ip) +-- instance (Eq ip, Serialize ip) => Serialize (Info ip) -- | The routing table covers the entire 'NodeId' space from 0 to 2 ^ -- 160. The routing table is subdivided into 'Bucket's that each cover -- cgit v1.2.3