summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/DHT/Session.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-01-22 01:22:18 -0500
committerjoe <joe@jerkface.net>2017-01-22 01:22:18 -0500
commitaab30811698a3b97173043e56e97f46cd3a91776 (patch)
tree1ddf1e98538e420dce12780bdca173fb879ad725 /src/Network/BitTorrent/DHT/Session.hs
parent21e1fdde98a2e263bf8dfc34a2545b0635e358c8 (diff)
Store external port number, as well as IP.
Diffstat (limited to 'src/Network/BitTorrent/DHT/Session.hs')
-rw-r--r--src/Network/BitTorrent/DHT/Session.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network/BitTorrent/DHT/Session.hs b/src/Network/BitTorrent/DHT/Session.hs
index c8545bfd..b85e97fa 100644
--- a/src/Network/BitTorrent/DHT/Session.hs
+++ b/src/Network/BitTorrent/DHT/Session.hs
@@ -373,7 +373,7 @@ checkToken addr questionableToken = do
373-----------------------------------------------------------------------} 373-----------------------------------------------------------------------}
374 374
375-- | This nodes externally routable address reported by remote peers. 375-- | This nodes externally routable address reported by remote peers.
376routableAddress :: DHT ip (Maybe ip) 376routableAddress :: DHT ip (Maybe SockAddr)
377routableAddress = do 377routableAddress = do
378 info <- asks routingInfo >>= liftIO . atomically . readTVar 378 info <- asks routingInfo >>= liftIO . atomically . readTVar
379 return $ myAddress <$> info 379 return $ myAddress <$> info