upnp: expose interface configuration on UpnpInit2()

Adds the Interface Name as an argument to the *Init functions to make it
possible to select which interface is used by upnp to detect servers.

Currently "nullptr" is passed in to let the upnp library select an
interface, as before.
This commit is contained in:
Max Audron
2021-11-08 22:48:07 +01:00
parent c93195c94b
commit 4ed60a5711
6 changed files with 12 additions and 11 deletions

View File

@@ -155,7 +155,7 @@ UpnpDatabase::Create(EventLoop &, EventLoop &io_event_loop,
void
UpnpDatabase::Open()
{
handle = UpnpClientGlobalInit();
handle = UpnpClientGlobalInit(nullptr);
discovery = new UPnPDeviceDirectory(event_loop, handle);
try {