aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/upnp/igdcontrolpoint.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2008-08-13 09:46:12 +0000
committerGravatar Fabio Bas2008-08-13 09:46:12 +0000
commit900c8771c9c08fb7861489ab2a5e14b12e27ab07 (patch)
tree07bd7f185352b2e389192322769e7b0dade2a53f /src/modules/upnp/igdcontrolpoint.cpp
parentwiped out layer3forwardingservice check from upnp module (incompatible betwee... (diff)
downloadKVIrc-900c8771c9c08fb7861489ab2a5e14b12e27ab07.tar.gz
KVIrc-900c8771c9c08fb7861489ab2a5e14b12e27ab07.tar.bz2
KVIrc-900c8771c9c08fb7861489ab2a5e14b12e27ab07.zip
more work on upnp
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2236 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/upnp/igdcontrolpoint.cpp')
-rw-r--r--src/modules/upnp/igdcontrolpoint.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/upnp/igdcontrolpoint.cpp b/src/modules/upnp/igdcontrolpoint.cpp
index 3ae288f22..e782f1370 100644
--- a/src/modules/upnp/igdcontrolpoint.cpp
+++ b/src/modules/upnp/igdcontrolpoint.cpp
@@ -40,8 +40,6 @@
namespace UPnP
{
-#define InternetGatewayDeviceType "urn:schemas-upnp-org:device:InternetGatewayDevice:1"
-
#define WanIpConnectionType "urn:schemas-upnp-org:service:WANIPConnection:1"
#define WanPPPConnectionType "urn:schemas-upnp-org:service:WANPPPConnection:1"
@@ -121,6 +119,9 @@ void IgdControlPoint::slotDeviceQueried(bool error)
if(! params.controlUrl.isNull())
{
+
+ m_bGatewayAvailable = true;
+
qDebug() << "UPnP::IgdControlPoint: wan/ipconnection service found, "
<< "querying service '" << params.serviceId << "' for external ip address..." << endl;
@@ -141,7 +142,6 @@ void IgdControlPoint::slotWanQueryFinished(bool error)
if(! error)
{
qDebug() << "IgdControlPoint: UPnP Gateway Device found." << endl;
- m_bGatewayAvailable = true;
} else {
// Just started, the request for the external IP failed. This should succeed, abort portation
qDebug() << "Requesting external IP address failed, leaving UPnP Gateway Device untouched." << endl;