From 1c1208c2d66172963faa5422dd61204b1ca1fdf2 Mon Sep 17 00:00:00 2001 From: Sam Truzjan Date: Mon, 17 Mar 2014 23:49:48 +0400 Subject: Warn: newSession expects list of trusted trackers --- src/Network/BitTorrent/Tracker/Session.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Network/BitTorrent/Tracker/Session.hs b/src/Network/BitTorrent/Tracker/Session.hs index 118befd3..7bf67ab8 100644 --- a/src/Network/BitTorrent/Tracker/Session.hs +++ b/src/Network/BitTorrent/Tracker/Session.hs @@ -168,8 +168,9 @@ data Session = Session , trackers :: !(MVar (TrackerList TrackerEntry)) } --- | Create a new multitracker session in paused state. To start --- announcing client presence use 'notify'. +-- | Create a new multitracker session in paused state. Tracker list +-- must contant only /trusted/ tracker uris. To start announcing +-- client presence use 'notify'. newSession :: InfoHash -> TrackerList URI -> IO Session newSession ih origUris = do uris <- shuffleTiers origUris -- cgit v1.2.3