reverted unintentional change
This commit is contained in:
parent
eb66830dc3
commit
c43229f89c
|
@ -552,8 +552,6 @@ void add_torrent(libtorrent::session& ses
|
|||
p.auto_managed = true;
|
||||
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(
|
||||
monitored_dir?std::string(torrent):std::string(), h));
|
||||
|
||||
|
@ -964,17 +962,6 @@ int main(int argc, char* argv[])
|
|||
|
||||
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
|
||||
std::vector<peer_info> peers;
|
||||
std::vector<partial_piece_info> queue;
|
||||
|
|
Loading…
Reference in New Issue