diff options
Diffstat (limited to 'PICA_netconf.c')
| -rw-r--r-- | PICA_netconf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/PICA_netconf.c b/PICA_netconf.c index d1dbb30..d311798 100644 --- a/PICA_netconf.c +++ b/PICA_netconf.c @@ -135,7 +135,12 @@ int PICA_upnp_autoconfigure_ipv4(int public_port, int local_port, char *public_i char lpstr[8]; int ret; +#if MINIUPNPC_API_VERSION < 14 + devlist = upnpDiscover(2000, 0, 0, 0, 0, &error); +#else devlist = upnpDiscover(2000, 0, 0, 0, 0, 2, &error); +#endif + ret = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr)); |
