(trunk libT) don't try to port forward through your cablebox just because it's hooked up to the local network...

This commit is contained in:
Charles Kerr 2010-06-27 15:29:23 +00:00
parent 3e89d45281
commit 77aaeb932b
1 changed files with 9 additions and 1 deletions

View File

@ -77,6 +77,14 @@ tr_upnpClose( tr_upnp * handle )
***
**/
enum
{
UPNP_IGD_NONE = 0,
UPNP_IGD_VALID_CONNECTED = 1,
UPNP_IGD_VALID_NOT_CONNECTED = 2,
UPNP_IGD_INVALID = 3
};
int
tr_upnpPulse( tr_upnp * handle,
int port,
@ -98,7 +106,7 @@ tr_upnpPulse( tr_upnp * handle,
}
errno = 0;
if( UPNP_GetValidIGD( devlist, &handle->urls, &handle->data,
handle->lanaddr, sizeof( handle->lanaddr ) ) )
handle->lanaddr, sizeof( handle->lanaddr ) ) == UPNP_IGD_VALID_CONNECTED )
{
tr_ninf( getKey( ), _(
"Found Internet Gateway Device \"%s\"" ),