Skip to content

Commit

Permalink
Detect FDSSDP as a microsoft client
Browse files Browse the repository at this point in the history
fixes 2f2685a
so FDSSDP.dll (Function Discovery Simple Service Discovery Protocol)
client is properly detected.
  • Loading branch information
miniupnp committed Jun 22, 2023
1 parent ad5a6de commit 8381867
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion miniupnpd/Changelog.txt
Original file line number Diff line number Diff line change
@@ -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:
option enable_natpmp => enable_pcp_pmp
Expand Down
9 changes: 6 additions & 3 deletions miniupnpd/upnphttp.c
Original file line number Diff line number Diff line change
@@ -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
* Project : miniupnp
* Website : http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
* 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
* LICENCE file included in this distribution.
* */
Expand Down Expand Up @@ -310,8 +310,11 @@ ParseHttpHeaders(struct upnphttp * h)
}
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;
}
}
#ifdef ENABLE_EVENTS
else if(strncasecmp(line, "Callback:", 9)==0)
Expand Down

0 comments on commit 8381867

Please sign in to comment.