diff --git a/examples/client_test.cpp b/examples/client_test.cpp index 9d6901d10..c123a225c 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -1167,7 +1167,8 @@ int main(int argc, char* argv[]) // match it against the @ format if (strlen(argv[i]) > 45 && is_hex(argv[i], 40) - && string_begins_no_case(argv[i] + 40, "@http")) + && (string_begins_no_case(argv[i] + 40, "@http://") + || string_begins_no_case(argv[i] + 40, "@udp://"))) { sha1_hash info_hash; from_hex(argv[i], 40, (char*)&info_hash[0]);