From a90a473d4860b3faa0debd2c4b729aa2a0c3fbbd Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Sun, 4 Oct 2015 04:53:18 +0000 Subject: [PATCH] #6003: Update to miniupnpc api 14 (slightly modified patch by infirit) --- libtransmission/upnp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libtransmission/upnp.c b/libtransmission/upnp.c index 59d4ed773..6a5e571f3 100644 --- a/libtransmission/upnp.c +++ b/libtransmission/upnp.c @@ -88,7 +88,11 @@ tr_upnpDiscover (int msec) #if (MINIUPNPC_API_VERSION >= 8) /* adds ipv6 and error args */ int err = UPNPDISCOVER_SUCCESS; + #if (MINIUPNPC_API_VERSION >= 14) /* adds ttl */ + ret = upnpDiscover (msec, NULL, NULL, 0, 0, 2, &err); + #else ret = upnpDiscover (msec, NULL, NULL, 0, 0, &err); + #endif have_err = err != UPNPDISCOVER_SUCCESS; #else ret = upnpDiscover (msec, NULL, NULL, 0);