mirror of
https://github.com/transmission/transmission
synced 2025-01-30 10:52:00 +00:00
Support uTorrent Web with both azureus style and the one without the dash at the end
This commit is contained in:
parent
d57f575892
commit
c7feedcf45
1 changed files with 6 additions and 1 deletions
|
@ -234,6 +234,11 @@ char* tr_clientForId(char* buf, size_t buflen, void const* id_in)
|
|||
tr_snprintf(buf, buflen, "\xc2\xb5Torrent Embedded %d.%d.%d%s", strint(id + 3, 1), strint(id + 4, 1),
|
||||
strint(id + 5, 1), getMnemonicEnd(id[6]));
|
||||
}
|
||||
else if (strncmp(chid + 1, "UW", 2) == 0)
|
||||
{
|
||||
tr_snprintf(buf, buflen, "\xc2\xb5Torrent Web %d.%d.%d%s", strint(id + 3, 1), strint(id + 4, 1), strint(id + 5,
|
||||
1), getMnemonicEnd(id[6]));
|
||||
}
|
||||
/* */
|
||||
else if (strncmp(chid + 1, "AZ", 2) == 0)
|
||||
{
|
||||
|
@ -666,7 +671,7 @@ char* tr_clientForId(char* buf, size_t buflen, void const* id_in)
|
|||
else if (strncmp(chid + 1, "UW", 2) == 0)
|
||||
{
|
||||
tr_snprintf(buf, buflen, "\xc2\xb5Torrent Web %d.%d.%d%s", strint(id + 3, 1), strint(id + 4, 1), strint(id + 5,
|
||||
1), getMnemonicEnd(id[6]));
|
||||
2), getMnemonicEnd(id[7]));
|
||||
}
|
||||
|
||||
if (!tr_str_is_empty(buf))
|
||||
|
|
Loading…
Reference in a new issue