Merge tag 'v0.20.16'

release v0.20.16
This commit is contained in:
Max Kellermann
2018-02-03 19:59:29 +01:00
8 changed files with 29 additions and 7 deletions

View File

@@ -34,7 +34,11 @@ static unsigned upnp_ref;
static void
DoInit()
{
auto code = UpnpInit(0, 0);
#ifdef UPNP_ENABLE_IPV6
auto code = UpnpInit2(nullptr, 0);
#else
auto code = UpnpInit(nullptr, 0);
#endif
if (code != UPNP_E_SUCCESS)
throw FormatRuntimeError("UpnpInit() failed: %s",
UpnpGetErrorMessage(code));