reverted unintentional change
This commit is contained in:
@@ -552,8 +552,6 @@ void add_torrent(libtorrent::session& ses
|
|||||||
p.auto_managed = true;
|
p.auto_managed = true;
|
||||||
torrent_handle h = ses.add_torrent(p, ec);
|
torrent_handle h = ses.add_torrent(p, ec);
|
||||||
|
|
||||||
h.connect_peer(tcp::endpoint(address::from_string("10.0.1.4"), 6881));
|
|
||||||
|
|
||||||
handles.insert(std::make_pair(
|
handles.insert(std::make_pair(
|
||||||
monitored_dir?std::string(torrent):std::string(), h));
|
monitored_dir?std::string(torrent):std::string(), h));
|
||||||
|
|
||||||
@@ -964,17 +962,6 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
ses.set_settings(settings);
|
ses.set_settings(settings);
|
||||||
|
|
||||||
ip_filter filter;
|
|
||||||
filter.add_rule(
|
|
||||||
address_v4::from_string("0.0.0.0")
|
|
||||||
, address_v4::from_string("255.255.255.255")
|
|
||||||
, ip_filter::blocked);
|
|
||||||
filter.add_rule(
|
|
||||||
address_v4::from_string("10.0.1.4")
|
|
||||||
, address_v4::from_string("10.0.1.4")
|
|
||||||
, 0);
|
|
||||||
ses.set_ip_filter(filter);
|
|
||||||
|
|
||||||
// main loop
|
// main loop
|
||||||
std::vector<peer_info> peers;
|
std::vector<peer_info> peers;
|
||||||
std::vector<partial_piece_info> queue;
|
std::vector<partial_piece_info> queue;
|
||||||
|
Reference in New Issue
Block a user