From 1f3b8462f0dd0997895dacbd867e581ce252975e Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Thu, 16 May 2024 02:06:20 +0200 Subject: [PATCH] miniupnpc: IPv6. Try first with site-local then link-local fixes #703 --- miniupnpc/src/minissdpc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/miniupnpc/src/minissdpc.c b/miniupnpc/src/minissdpc.c index 98c5b37..8f1cf09 100644 --- a/miniupnpc/src/minissdpc.c +++ b/miniupnpc/src/minissdpc.c @@ -548,7 +548,7 @@ ssdpDiscoverDevices(const char * const deviceTypes[], #ifdef _WIN32 unsigned long _ttl = (unsigned long)ttl; #endif - int linklocal = 1; + int linklocal = 0; /* try first with site-local multicast */ int sentok; if(error) @@ -1007,9 +1007,10 @@ ssdpDiscoverDevices(const char * const deviceTypes[], /* switch linklocal flag */ if(linklocal) { linklocal = 0; - --deviceIndex; } else { + /* try again with linklocal multicast */ linklocal = 1; + --deviceIndex; } } }