From c7feedcf455bb311cc9d0a90c92c0fc8668ada4b Mon Sep 17 00:00:00 2001 From: Mark Deepwell Date: Tue, 11 May 2021 21:39:09 -0700 Subject: [PATCH] Support uTorrent Web with both azureus style and the one without the dash at the end --- libtransmission/clients.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libtransmission/clients.c b/libtransmission/clients.c index 866e3052c..08e2b3b33 100644 --- a/libtransmission/clients.c +++ b/libtransmission/clients.c @@ -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))