Skip to content

Commit

Permalink
Allow default plugins when creating session.
Browse files Browse the repository at this point in the history
Add default plugins when creating a session but still don't start
"default features" (UPnP, NAT-PMP, LSD and DHT).
  • Loading branch information
xrgtn committed Aug 10, 2017
1 parent cb176c4 commit b514d3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mag2tor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ int main(int argc, char *argv[]) {
break;
}

lt::session sess(lt::fingerprint("LT", 0, 0, 0, 0), 0);
lt::session sess(lt::fingerprint("LT", 0, 0, 0, 0),
lt::session::add_default_plugins);
sess.set_settings(sset);
atp.upload_mode = true;
atp.auto_managed = false;
Expand Down

0 comments on commit b514d3f

Please sign in to comment.