Changeset 4717


Ignore:
Timestamp:
Jan 17, 2008, 12:08:40 AM (14 years ago)
Author:
charles
Message:

fix byte ordering of the port in tr_peerIoAddrStr()

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r4609 r4717  
    243243{
    244244    static char buf[512];
    245     snprintf( buf, sizeof(buf), "%s:%u", inet_ntoa( *addr ), (unsigned int)port );
     245    snprintf( buf, sizeof(buf), "%s:%u", inet_ntoa( *addr ), ntohs( port ) );
    246246    return buf;
    247247}
  • trunk/libtransmission/tracker.c

    r4597 r4717  
    255255    event.peerCompact = peers;
    256256    tr_inf( "Torrent \"%s\" got %d new peers", t->name, count );
    257     tr_publisherPublish( t->publisher, t, &event );
     257    if( count )
     258        tr_publisherPublish( t->publisher, t, &event );
    258259}
    259260
Note: See TracChangeset for help on using the changeset viewer.