Detect FDSSDP as a microsoft client
fixes 2f2685af97
so FDSSDP.dll (Function Discovery Simple Service Discovery Protocol)
client is properly detected.
This commit is contained in:
parent
ad5a6def8a
commit
8381867faf
|
@ -1,4 +1,7 @@
|
||||||
$Id: Changelog.txt,v 1.501 2023/05/27 16:49:14 nanard Exp $
|
$Id: Changelog.txt,v 1.502 2023/06/22 23:17:03 nanard Exp $
|
||||||
|
|
||||||
|
2023/06/23:
|
||||||
|
detect FDSSDP as a Microsoft client
|
||||||
|
|
||||||
2023/05/27:
|
2023/05/27:
|
||||||
option enable_natpmp => enable_pcp_pmp
|
option enable_natpmp => enable_pcp_pmp
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
/* $Id: upnphttp.c,v 1.111 2021/05/22 21:34:12 nanard Exp $ */
|
/* $Id: upnphttp.c,v 1.113 2023/06/22 23:17:01 nanard Exp $ */
|
||||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||||
* Project : miniupnp
|
* Project : miniupnp
|
||||||
* Website : http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
|
* Website : http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
|
||||||
* Author : Thomas Bernard
|
* Author : Thomas Bernard
|
||||||
* Copyright (c) 2005-2021 Thomas Bernard
|
* Copyright (c) 2005-2023 Thomas Bernard
|
||||||
* This software is subject to the conditions detailed in the
|
* This software is subject to the conditions detailed in the
|
||||||
* LICENCE file included in this distribution.
|
* LICENCE file included in this distribution.
|
||||||
* */
|
* */
|
||||||
|
@ -310,8 +310,11 @@ ParseHttpHeaders(struct upnphttp * h)
|
||||||
}
|
}
|
||||||
else if(strncasecmp(line, "user-agent:", 11) == 0)
|
else if(strncasecmp(line, "user-agent:", 11) == 0)
|
||||||
{
|
{
|
||||||
if(strcasestr(line + 11, "microsoft") != NULL)
|
/* - User-Agent: Microsoft-Windows/10.0 UPnP/1.0
|
||||||
|
* - User-Agent: FDSSDP */
|
||||||
|
if(strcasestr(line + 11, "microsoft") != NULL || strstr(line + 11, "FDSSDP") != NULL) {
|
||||||
h->respflags |= FLAG_MS_CLIENT;
|
h->respflags |= FLAG_MS_CLIENT;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#ifdef ENABLE_EVENTS
|
#ifdef ENABLE_EVENTS
|
||||||
else if(strncasecmp(line, "Callback:", 9)==0)
|
else if(strncasecmp(line, "Callback:", 9)==0)
|
||||||
|
|
Loading…
Reference in New Issue