mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 11:38:50 -07:00
- Added a message log when an UPnP WAN service is detected
This commit is contained in:
parent
3ff075c048
commit
4ca852c2b3
7 changed files with 18 additions and 2 deletions
|
@ -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){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue