Changeset 4175


Ignore:
Timestamp:
Dec 15, 2007, 5:28:16 AM (15 years ago)
Author:
charles
Message:

add messages asking the user to check & make sure that port forwarding is enabled on their router

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/natpmp.c

    r4157 r4175  
    131131            nat->state = TR_NATPMP_IDLE;
    132132        } else if( val != NATPMP_TRYAGAIN ) {
     133            tr_err( KEY "If your router supports NAT-PMP, please make sure NAT-PMP is enabled!" );
    133134            nat->state = TR_NATPMP_ERR;
    134135        }
     
    160161            nat->isMapped = 0;
    161162        } else if( val != NATPMP_TRYAGAIN ) {
     163            tr_err( KEY "If your router supports NAT-PMP, please make sure NAT-PMP is enabled!" );
    162164            nat->state = TR_NATPMP_ERR;
    163165        }
  • trunk/libtransmission/upnp.c

    r4172 r4175  
    9494        errno = 0;
    9595        if( UPNP_GetValidIGD( devlist, &handle->urls, &handle->data, handle->lanaddr, sizeof(handle->lanaddr))) {
    96             tr_inf( KEY "found Internet Gateway Device '%s'", handle->urls.controlURL );
    97             tr_inf( KEY "local LAN IP Address is '%s'", handle->lanaddr );
     96            tr_inf( KEY "Found Internet Gateway Device '%s'", handle->urls.controlURL );
     97            tr_inf( KEY "Local LAN IP Address is '%s'", handle->lanaddr );
    9898            handle->state = TR_UPNP_IDLE;
    9999            handle->hasDiscovered = 1;
     
    101101            handle->state = TR_UPNP_ERR;
    102102            tr_err( KEY "UPNP_GetValidIGD failed.  (errno %d - %s)", errno, strerror(errno) );
     103            tr_err( KEY "If your router supports UPnP, please make sure UPnP is enabled!" );
    103104        }
    104105        freeUPNPDevlist( devlist );
     
    118119                                handle->data.servicetype,
    119120                                portStr, "TCP" );
    120         tr_dbg( KEY "stopping port forwarding of '%s', service '%s'",
     121        tr_dbg( KEY "Stopping port forwarding of '%s', service '%s'",
    121122                handle->urls.controlURL, handle->data.servicetype );
    122123        handle->isMapped = 0;
     
    142143                                                  portStr, portStr, handle->lanaddr,
    143144                                                  "Transmission", "TCP" ) );
    144         tr_inf( KEY "port forwarding via '%s', service '%s'.  (local address: %s:%d)",
     145        tr_inf( KEY "Port forwarding via '%s', service '%s'.  (local address: %s:%d)",
    145146                handle->urls.controlURL, handle->data.servicetype, handle->lanaddr, port );
    146147        if( handle->isMapped ) {
    147             tr_inf( KEY "port forwarding successful!" );
     148            tr_inf( KEY "Port forwarding successful!" );
    148149            handle->port = port;
    149150            handle->state = TR_UPNP_IDLE;
    150151        } else {
    151             tr_err( KEY "port forwarding failed (errno %d - %s)", errno, strerror(errno) );
     152            tr_err( KEY "Port forwarding failed (errno %d - %s)", errno, strerror(errno) );
     153            tr_err( KEY "If your router supports UPnP, please make sure UPnP is enabled!" );
    152154            handle->port = -1;
    153155            handle->state = TR_UPNP_ERR;
Note: See TracChangeset for help on using the changeset viewer.