miniupnpc: Update to 2.2.8 (new major 18)
Keep support for major 17 by using a version check for the changed API. Fixes #93907.
This commit is contained in:
9
thirdparty/miniupnpc/src/minissdpc.c
vendored
9
thirdparty/miniupnpc/src/minissdpc.c
vendored
@ -1,9 +1,9 @@
|
||||
/* $Id: minissdpc.c,v 1.49 2021/05/13 11:00:36 nanard Exp $ */
|
||||
/* $Id: minissdpc.c,v 1.51 2024/05/16 00:12:05 nanard Exp $ */
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
* Project : miniupnp
|
||||
* Web : http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
|
||||
* Author : Thomas BERNARD
|
||||
* copyright (c) 2005-2021 Thomas Bernard
|
||||
* copyright (c) 2005-2024 Thomas Bernard
|
||||
* This software is subjet to the conditions detailed in the
|
||||
* provided LICENCE file. */
|
||||
#include <stdio.h>
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user