mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 12:01:05 +00:00
Fix miniupnpc version 18+
This commit is contained in:
parent
88fa2eb776
commit
51af830d30
1 changed files with 4 additions and 0 deletions
|
@ -317,7 +317,11 @@ init_upnpc_once(struct upnpdata *upnpuserdata)
|
|||
I_OutputMsg(M_GetText("Found UPnP device:\n desc: %s\n st: %s\n"),
|
||||
dev->descURL, dev->st);
|
||||
|
||||
#if (MINIUPNPC_API_VERSION >= 18)
|
||||
UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr), NULL, 0);
|
||||
#else
|
||||
UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr));
|
||||
#endif
|
||||
I_OutputMsg(M_GetText("Local LAN IP address: %s\n"), lanaddr);
|
||||
descXML = miniwget(dev->descURL, &descXMLsize, scope_id, &status_code);
|
||||
if (descXML)
|
||||
|
|
Loading…
Reference in a new issue