mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
(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:
parent
3e89d45281
commit
77aaeb932b
1 changed files with 9 additions and 1 deletions
|
@ -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\"" ),
|
||||
|
|
Loading…
Reference in a new issue