Commit dead4615 authored by Max Kellermann's avatar Max Kellermann

lib/upnp/Init: enable IPv6

parent 3d5da1ac
......@@ -3,6 +3,7 @@ ver 0.20.16 (not yet released)
- pulse: fix crash during auto-detection
* database
- simple: fix search within mount points
- upnp: enable IPv6
* fix crash in debug build on Haiku and other operating systems
ver 0.20.15 (2018/01/05)
......
......@@ -34,7 +34,11 @@ static unsigned upnp_ref;
static void
DoInit()
{
#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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment