Skip to content

Commit

Permalink
miniupnp: add support for api version 18
Browse files Browse the repository at this point in the history
  • Loading branch information
scribam committed Jun 24, 2024
1 parent fefdb6c commit 4a3f4c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/network/miniupnp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ bool MiniUPnP::Init()
WARN_LOG(NETWORK, "UPnP discover failed: error %d", error);
return false;
}
#if MINIUPNPC_API_VERSION >= 18
error = UPNP_GetValidIGD(devlist, &urls, &data, lanAddress, sizeof(lanAddress), nullptr, 0);
#else
error = UPNP_GetValidIGD(devlist, &urls, &data, lanAddress, sizeof(lanAddress));
#endif
freeUPNPDevlist(devlist);
if (error != 1)
{
Expand Down

0 comments on commit 4a3f4c5

Please sign in to comment.