Support uTorrent Web with both azureus style and the one without the dash at the end

This commit is contained in:
Mark Deepwell 2021-05-11 21:39:09 -07:00
parent d57f575892
commit c7feedcf45
No known key found for this signature in database
GPG Key ID: 4C7233BBEAB5B505
1 changed files with 6 additions and 1 deletions

View File

@ -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))