mirror of
https://github.com/glest/glest-source.git
synced 2025-09-27 16:09:00 +02:00
- added support for miniupnpc 1.9
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user