From cdb23ff377c4a34a4315ba40fae65c8e5b6bc02e Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Mon, 17 Aug 2015 16:22:03 +0200 Subject: [PATCH] python module: change UPnP_discover() invocation fixes #148 --- miniupnpc/miniupnpcmodule.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miniupnpc/miniupnpcmodule.c b/miniupnpc/miniupnpcmodule.c index 5f46d5f..7740c33 100644 --- a/miniupnpc/miniupnpcmodule.c +++ b/miniupnpc/miniupnpcmodule.c @@ -112,8 +112,9 @@ UPnP_discover(UPnPObject *self) self->devlist = upnpDiscover((int)self->discoverdelay/*timeout in ms*/, self->multicastif, self->minissdpdsocket, - 0/*sameport flag*/, + 0/*sameport flag*/, 0/*ip v6*/, + 2/* TTL */, 0/*error */); Py_END_ALLOW_THREADS /* Py_RETURN_NONE ??? */