Source: 0ad
Severity: important
Tags: trixie sid ftbfs patch

Hi,

Please find the attached patch to fix your package for the transition
to miniupnpc 2.2.8.
--- a/source/network/NetServer.cpp
+++ b/source/network/NetServer.cpp
@@ -302,7 +302,7 @@ void CNetServerWorker::SetupUPnP()
 	else if ((devlist = upnpDiscover(10000, 0, 0, 0, 0, 0)) != NULL)
 #endif
 	{
-		ret = UPNP_GetValidIGD(devlist, &urls, &data, internalIPAddress, sizeof(internalIPAddress));
+		ret = UPNP_GetValidIGD(devlist, &urls, &data, internalIPAddress, sizeof(internalIPAddress), NULL, 0);
 		allocatedUrls = ret != 0; // urls is allocated on non-zero return values
 	}
 	else
@@ -321,9 +321,12 @@ void CNetServerWorker::SetupUPnP()
 		LOGMESSAGE("Net server: found valid IGD = %s", urls.controlURL);
 		break;
 	case 2:
-		LOGMESSAGE("Net server: found a valid, not connected IGD = %s, will try to continue anyway", urls.controlURL);
+		LOGMESSAGE("Net server: found a reserved, non routable IGD = %s, will try to continue anyway", urls.controlURL);
 		break;
 	case 3:
+		LOGMESSAGE("Net server: found a valid, not connected IGD = %s, will try to continue anyway", urls.controlURL);
+		break;
+	case 4:
 		LOGMESSAGE("Net server: found a UPnP device unrecognized as IGD = %s, will try to continue anyway", urls.controlURL);
 		break;
 	default:

Reply via email to