Skip to content

Commit dd7e40b

Browse files
committed
Start session without plugins & features.
* create libtorrent fingerprint with spoofed version "0.0" * create session with flags=0, which means no default plugins will be enabled and no default features started. These "default features" are: - UPnP port mapper - NATPMP port mapper - LSD port mapper - DHT
1 parent 8f2c16a commit dd7e40b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mag2tor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <libtorrent/alert_types.hpp>
1313
#include <libtorrent/bencode.hpp>
1414
#include <libtorrent/create_torrent.hpp>
15+
#include <libtorrent/fingerprint.hpp>
1516
#include <libtorrent/session.hpp>
1617
#include <libtorrent/session_settings.hpp>
1718
#include <libtorrent/storage_defs.hpp> // lt::disabled_storage_constructor
@@ -89,7 +90,7 @@ int main(int argc, char *argv[]) {
8990
break;
9091
}
9192

92-
lt::session sess;
93+
lt::session sess(lt::fingerprint("LT", 0, 0, 0, 0), 0);
9394
sess.set_settings(sset);
9495
atp.upload_mode = true;
9596
atp.auto_managed = false;

0 commit comments

Comments
 (0)