miniupnpc: Also accept "Up" as ConnectionStatus value
This commit is contained in:
parent
8ec33b7691
commit
fd8e8e7593
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue