Changeset 14286


Ignore:
Timestamp:
Jun 7, 2014, 3:07:51 PM (6 years ago)
Author:
jordan
Message:

(trunk, libT) #5711: add support for BitTorrent? client peer-id

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/clients-test.c

    r14241 r14286  
    2929    TEST_CLIENT ("O1008132", "Osprey 1.0.0");
    3030    TEST_CLIENT ("TIX0193-", "Tixati 1.93");
     31    TEST_CLIENT ("-UT341\0-", "\xc2\xb5Torrent 3.4.1");
     32    TEST_CLIENT ("-BT791\0-", "BitTorrent 7.9.1");
     33    TEST_CLIENT ("-BT791B-", "BitTorrent 7.9.1 (Beta)");
    3134
    3235    /* gobbledygook */
  • trunk/libtransmission/clients.c

    r14241 r14286  
    164164                          id[6]=='Z' || id[6]=='X' ? "+" : "");
    165165        }
    166 
    167166        else if (!memcmp (id+1, "UT", 2))
    168167        {
    169168            tr_snprintf (buf, buflen, "\xc2\xb5Torrent %d.%d.%d%s",
     169                         strint (id+3,1), strint (id+4,1), strint (id+5,1), getMnemonicEnd (id[6]));
     170        }
     171        else if (!memcmp (id+1, "BT", 2))
     172        {
     173            tr_snprintf (buf, buflen, "BitTorrent %d.%d.%d%s",
    170174                         strint (id+3,1), strint (id+4,1), strint (id+5,1), getMnemonicEnd (id[6]));
    171175        }
Note: See TracChangeset for help on using the changeset viewer.