supports turning on and off upnp, natpmp and lsd. All ofthem are now off by default

This commit is contained in:
Arvid Norberg
2007-05-31 00:21:54 +00:00
parent b385ed6064
commit 31247c046a
7 changed files with 157 additions and 26 deletions

View File

@@ -640,6 +640,12 @@ int main(int ac, char* av[])
// monitor when they're not in the directory anymore.
handles_t handles;
session ses;
// UPnP port mapping
ses.start_upnp();
// NAT-PMP port mapping
ses.start_natpmp();
// Local service discovery (finds peers on the local network)
ses.start_lsd();
ses.add_extension(&create_metadata_plugin);
ses.add_extension(&create_ut_pex_plugin);