2
0
mirror of synced 2025-02-23 22:28:11 +00:00

Set torrentDataOpener from config

This commit is contained in:
Matt Joiner 2015-02-25 15:41:13 +11:00
parent 295b71c09b
commit 80ce2c3188

View File

@ -418,6 +418,9 @@ func NewClient(cfg *Config) (cl *Client, err error) {
torrents: make(map[InfoHash]*torrent),
}
cl.event.L = &cl.mu
if cfg.TorrentDataOpener != nil {
cl.torrentDataOpener = cfg.TorrentDataOpener
}
if !cfg.NoDefaultBlocklist {
err = cl.setEnvBlocklist()