mirror of
https://github.com/transmission/transmission
synced 2025-01-03 21:45:49 +00:00
commit
30467baa87
2 changed files with 7 additions and 0 deletions
|
@ -45,6 +45,9 @@ int main(void)
|
||||||
TEST_CLIENT("-FD51W\xFF-", "Free Download Manager 5.1.32");
|
TEST_CLIENT("-FD51W\xFF-", "Free Download Manager 5.1.32");
|
||||||
TEST_CLIENT("-FD51@\xFF-", "Free Download Manager 5.1.x"); /* Negative test case */
|
TEST_CLIENT("-FD51@\xFF-", "Free Download Manager 5.1.x"); /* Negative test case */
|
||||||
|
|
||||||
|
/* Folx */
|
||||||
|
TEST_CLIENT("-FL51FF-", "Folx 5.x"); /* Folx v5.2.1.13690 */
|
||||||
|
|
||||||
/* gobbledygook */
|
/* gobbledygook */
|
||||||
TEST_CLIENT("-IIO\x10\x2D\x04-", "-IIO%10-%04-");
|
TEST_CLIENT("-IIO\x10\x2D\x04-", "-IIO%10-%04-");
|
||||||
TEST_CLIENT("-I\05O\x08\x03\x01-", "-I%05O%08%03%01-");
|
TEST_CLIENT("-I\05O\x08\x03\x01-", "-I%05O%08%03%01-");
|
||||||
|
|
|
@ -630,6 +630,10 @@ char* tr_clientForId(char* buf, size_t buflen, void const* id_in)
|
||||||
tr_snprintf(buf, buflen, "Free Download Manager %d.%d.x", charint(id[3]), charint(id[4]));
|
tr_snprintf(buf, buflen, "Free Download Manager %d.%d.x", charint(id[3]), charint(id[4]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (strncmp(chid + 1, "FL", 2) == 0)
|
||||||
|
{
|
||||||
|
tr_snprintf(buf, buflen, "Folx %d.x", charint(id[3]));
|
||||||
|
}
|
||||||
|
|
||||||
if (*buf != '\0')
|
if (*buf != '\0')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue