From 8a6e102a82d6a5c857721156f449992dc037b934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Wed, 22 Feb 2017 23:01:57 +0100 Subject: [PATCH] Increase UPNP compatibility --- libretro-common/net/net_natt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro-common/net/net_natt.c b/libretro-common/net/net_natt.c index a94ca9b908..427cf13fea 100644 --- a/libretro-common/net/net_natt.c +++ b/libretro-common/net/net_natt.c @@ -118,7 +118,7 @@ static bool natt_open_port(struct natt_status *status, /* add the port mapping */ r = UPNP_AddAnyPortMapping(urls.controlURL, data.first.servicetype, port_str, port_str, host, "retroarch", proto_str, NULL, "3600", ext_port_str); - if (r == 501 /* Action Failed */) + if (r != 0) { /* try the older AddPortMapping */ memcpy(ext_port_str, port_str, 6);