From f8da64d74091ce321b94b82418afd1b688ccc71e Mon Sep 17 00:00:00 2001 From: Cthulhu-throwaway <96153783+Cthulhu-throwaway@users.noreply.github.com> Date: Wed, 12 Jan 2022 11:30:16 -0300 Subject: [PATCH] (UPnP) Accept IGD v2 service types (#13482) --- libretro-common/net/net_natt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretro-common/net/net_natt.c b/libretro-common/net/net_natt.c index 067978cfad..698b308df6 100644 --- a/libretro-common/net/net_natt.c +++ b/libretro-common/net/net_natt.c @@ -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;