Changeset 10900


Ignore:
Timestamp:
Jun 27, 2010, 3:29:23 PM (11 years ago)
Author:
charles
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/upnp.c

    r10460 r10900  
    7878**/
    7979
     80enum
     81{
     82  UPNP_IGD_NONE = 0,
     83  UPNP_IGD_VALID_CONNECTED = 1,
     84  UPNP_IGD_VALID_NOT_CONNECTED = 2,
     85  UPNP_IGD_INVALID = 3
     86};
     87
    8088int
    8189tr_upnpPulse( tr_upnp * handle,
     
    99107        errno = 0;
    100108        if( UPNP_GetValidIGD( devlist, &handle->urls, &handle->data,
    101                              handle->lanaddr, sizeof( handle->lanaddr ) ) )
     109                             handle->lanaddr, sizeof( handle->lanaddr ) ) == UPNP_IGD_VALID_CONNECTED )
    102110        {
    103111            tr_ninf( getKey( ), _(
Note: See TracChangeset for help on using the changeset viewer.