mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-26 12:47:37 +00:00
Increase UPNP compatibility
This commit is contained in:
parent
bd9e2e5fc7
commit
8a6e102a82
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user