(UPnP) Accept IGD v2 service types (#13482)

This commit is contained in:
Cthulhu-throwaway 2022-01-12 11:30:16 -03:00 committed by GitHub
parent 2095fc53f8
commit f8da64d740
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -379,8 +379,8 @@ static bool parse_desc_node(rxml_node_t *node,
return false;
/* These two are the only IGD service types we can work with. */
if (!strstr(service_type->data, "WANIPConnection:1") &&
!strstr(service_type->data, "WANPPPConnection:1"))
if (!strstr(service_type->data, ":WANIPConnection:") &&
!strstr(service_type->data, ":WANPPPConnection:"))
return false;
if (!build_control_url(control_url, device))
return false;