Changeset 9784


Ignore:
Timestamp:
Dec 16, 2009, 12:45:18 AM (12 years ago)
Author:
charles
Message:

(trunk libT) #2508 "atom->port never updated" -- (1) fix r9434 bug that used the wrong byte ordering scheme for port numbers. This is why most of the .resume file's peers are worthless in betas 1 and 2. :( (2) in the resume file, change the dictionary key for peers so that the worthless peers won't be reloaded on startup in beta 3.

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.h

    r9671 r9784  
    5252{
    5353    tr_address addr;
    54     tr_port    port;
     54    tr_port    port; /* this field is in network byte order */
    5555    uint8_t    flags;
    5656}
  • trunk/libtransmission/peer-msgs.c

    r9779 r9784  
    976976    /* get peer's listening port */
    977977    if( tr_bencDictFindInt( &val, "p", &i ) ) {
    978         fireClientGotPort( msgs, (tr_port)i );
    979978        pex.port = htons( (uint16_t)i );
     979        fireClientGotPort( msgs, pex.port );
    980980        dbgmsg( msgs, "peer's port is now %d", (int)i );
    981981    }
  • trunk/libtransmission/resume.c

    r9671 r9784  
    3535#define KEY_MAX_PEERS           "max-peers"
    3636#define KEY_PAUSED              "paused"
    37 #define KEY_PEERS               "peers"
    38 #define KEY_PEERS6              "peers6"
     37#define KEY_PEERS               "peers2"
     38#define KEY_PEERS6              "peers2-6"
    3939#define KEY_FILE_PRIORITIES     "priority"
    4040#define KEY_BANDWIDTH_PRIORITY  "bandwidth-priority"
Note: See TracChangeset for help on using the changeset viewer.