diff options
author | Max Kellermann <max@musicpd.org> | 2018-02-03 19:59:29 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-02-03 19:59:29 +0100 |
commit | 250b6a3d521523617ea654d66a5156faa64f6f28 (patch) | |
tree | 8067999b9b4cf5d6f1027a3f1a328348f9ab4d96 /src/lib/upnp/Init.cxx | |
parent | 73ddbcc8767e17304fbf8874c60ac58358b10072 (diff) | |
parent | 975a4ae8719673357d12d9566b4f0a5436b5f80f (diff) |
Merge tag 'v0.20.16'
release v0.20.16
Diffstat (limited to 'src/lib/upnp/Init.cxx')
-rw-r--r-- | src/lib/upnp/Init.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/upnp/Init.cxx b/src/lib/upnp/Init.cxx index 33484539d..ae7a0d974 100644 --- a/src/lib/upnp/Init.cxx +++ b/src/lib/upnp/Init.cxx @@ -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)); |