- fix for UPnP option

This commit is contained in:
Christophe Dumez 2007-03-27 21:12:33 +00:00
parent d778766e29
commit e0a0a0beb1
4 changed files with 10 additions and 5 deletions

View file

@ -986,7 +986,11 @@ void GUI::configureSession(bool deleteOptions){
}
#ifndef NO_UPNP
// Upnp
BTSession.enableUPnP();
if(options->isDHTEnabled()){
BTSession.enableUPnP(options->getUPnPPort());
}else{
BTSession.disableUPnP();
}
#endif
// PeX
if(!options->isPeXDisabled()){