summaryrefslogtreecommitdiff
blob: ff46685cd3bf101d4a1398869171536b6a764a61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: ps/trunk/source/network/NetServer.cpp
===================================================================
--- ps/trunk/source/network/NetServer.cpp	(revision 17090)
+++ ps/trunk/source/network/NetServer.cpp	(revision 17091)
@@ -237,5 +237,9 @@
 	}
 	// No cached URL, or it did not respond. Try getting a valid UPnP device for 10 seconds.
+#if defined(MINIUPNPC_API_VERSION) && MINIUPNPC_API_VERSION >= 14
+	else if ((devlist = upnpDiscover(10000, 0, 0, 0, 0, 2, 0)) != NULL)
+#else
 	else if ((devlist = upnpDiscover(10000, 0, 0, 0, 0, 0)) != NULL)
+#endif
 	{
 		ret = UPNP_GetValidIGD(devlist, &urls, &data, internalIPAddress, sizeof(internalIPAddress));