added option to set alert mask when constructing session

This commit is contained in:
Arvid Norberg
2008-11-16 02:09:53 +00:00
parent 7e4d5dc72f
commit e9a33e6a05
4 changed files with 18 additions and 5 deletions

View File

@@ -855,7 +855,8 @@ int main(int ac, char* av[])
// be able to remove torrents that were added via the directory
// monitor when they're not in the directory anymore.
handles_t handles;
session ses;
session ses(fingerprint("LT", LIBTORRENT_VERSION_MAJOR, LIBTORRENT_VERSION_MINOR, 0, 0)
, session::start_default_features | session::add_default_plugins, alert::all_categories);
#ifndef TORRENT_DISABLE_GEO_IP
ses.load_asnum_db("GeoIPASNum.dat");
ses.load_country_db("GeoIP.dat");