miniupnpc: Also accept "Up" as ConnectionStatus value

This commit is contained in:
Thomas Bernard 2015-08-16 22:10:48 +02:00
parent 8ec33b7691
commit fd8e8e7593
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,9 @@
$Id: Changelog.txt,v 1.212 2015/07/23 20:41:50 nanard Exp $
miniUPnP client Changelog.
2015/08/16:
Also accept "Up" as ConnectionStatus value
2015/07/23:
split getDevicesFromMiniSSDPD
add ttl argument to upnpDiscover() functions

View File

@ -961,9 +961,9 @@ UPNPIGD_IsConnected(struct UPNPUrls * urls, struct IGDdatas * data)
UPNP_GetStatusInfo(urls->controlURL, data->first.servicetype,
status, &uptime, NULL);
if(0 == strcmp("Connected", status))
{
return 1;
}
else if(0 == strcmp("Up", status)) /* Also accept "Up" */
return 1;
else
return 0;
}