Ignore:
Timestamp:
Sep 9, 2007, 1:52:14 AM (15 years ago)
Author:
charles
Message:

add an `isEncrypted' field to tr_peer_stat, so the GUI can show which connections are encrypted with a lock icon or something

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/encryption/libtransmission/peer-mgr.c

    r2989 r2995  
    776776        stat->client           = peer->client;
    777777        stat->progress         = peer->progress;
    778         stat->isConnected      = live;
     778        stat->isConnected      = live ? 1 : 0;
     779        stat->isEncrypted      = tr_peerIoIsEncrypted( peer->io ) ? 1 : 0;
    779780        stat->uploadToRate     = tr_peerIoGetRateToPeer( peer->io );
    780781        stat->downloadFromRate = tr_peerIoGetRateToClient( peer->io );
Note: See TracChangeset for help on using the changeset viewer.