mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
- Added a message log when an UPnP WAN service is detected
This commit is contained in:
@@ -90,6 +90,7 @@ void bittorrent::enableUPnP(int port){
|
||||
"qBittorrent");
|
||||
m_upnp = new CUPnPControlPoint(port);
|
||||
connect(m_upnp, SIGNAL(noWanServiceDetected()), this, SLOT(noWanServiceEventHandler()));
|
||||
connect(m_upnp, SIGNAL(yeswanServiceDetected()), this, SLOT(wanServiceEventHandler()));
|
||||
m_upnp->AddPortMappings(m_upnpMappings);
|
||||
}
|
||||
}
|
||||
@@ -99,6 +100,11 @@ void bittorrent::noWanServiceEventHandler(){
|
||||
emit noWanServiceDetected();
|
||||
}
|
||||
|
||||
void bittorrent::wanServiceEventHandler(){
|
||||
// Forward this signal
|
||||
emit wanServiceDetected();
|
||||
}
|
||||
|
||||
// Set UPnP port (>= 1000)
|
||||
void bittorrent::setUPnPPort(int upnp_port){
|
||||
if(!UPnPEnabled){
|
||||
|
||||
Reference in New Issue
Block a user