- added support for miniupnpc 1.9

This commit is contained in:
SoftCoder
2015-10-21 18:11:19 -07:00
parent 6d0592d4ab
commit 49ce8e729b
50 changed files with 2422 additions and 1100 deletions

View File

@@ -2566,8 +2566,12 @@ int UPNP_Tools::upnp_init(void *param) {
int upnp_error = 0;
#ifndef MINIUPNPC_VERSION_PRE1_6
#if !defined(MINIUPNPC_API_VERSION) || MINIUPNPC_API_VERSION < 14
devlist = upnpDiscover(upnp_delay, upnp_multicastif, upnp_minissdpdsock, upnp_sameport, upnp_ipv6, &upnp_error);
#else
// miniupnpc 1.9.20150730
devlist = upnpDiscover(upnp_delay, upnp_multicastif, upnp_minissdpdsock, upnp_sameport, upnp_ipv6, 2, &upnp_error);
#endif
if(SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork,"UPnP discover returned upnp_error = %d.\n",upnp_error);
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("UPnP discover returned upnp_error = %d.\n",upnp_error);