Changeset 7342


Ignore:
Timestamp:
Dec 10, 2008, 6:12:04 AM (12 years ago)
Author:
charles
Message:

(trunk libT) make the upnp description a little easier to differentiate between separate instances of Transmission

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/upnp.c

    r7173 r7342  
    153153    {
    154154        int  err = -1;
    155         char portStr[16];
    156         tr_snprintf( portStr, sizeof( portStr ), "%d", port );
    157155        errno = 0;
    158156
     
    161159        else
    162160        {
     161            char portStr[16];
     162            char desc[64];
     163            tr_snprintf( portStr, sizeof( portStr ), "%d", port );
     164            tr_snprintf( desc, sizeof( desc ), "%s at %d", TR_NAME, port );
    163165            err = UPNP_AddPortMapping( handle->urls.controlURL,
    164166                                       handle->data.servicetype,
    165167                                       portStr, portStr, handle->lanaddr,
    166                                        "Transmission", "TCP" );
     168                                       desc, "TCP" );
    167169            handle->isMapped = !err;
    168170        }
Note: See TracChangeset for help on using the changeset viewer.