Skip to content

Commit

Permalink
Fix regex (#576)
Browse files Browse the repository at this point in the history
fixes #575
  • Loading branch information
tehcneko authored Jul 26, 2024
1 parent 6402b82 commit fb6e1ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/bittorrent/peer_blacklist.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ bool is_bad_peer(const lt::peer_info& info)
{
static const std::regex id_filter("-(XL|SD|XF|QD|BN|DL|TS|DT|HP)(\\d+)-");
static const std::regex ua_filter(R"((\d+.\d+.\d+.\d+|cacao_torrent))");
static const std::regex consume_filter(R"(((dt|hp|xm)/torrent|(Taipei-torrent( dev)?))", std::regex_constants::icase);
static const std::regex consume_filter(R"(((dt|hp|xm)/torrent|(Taipei-torrent( dev)?)))", std::regex_constants::icase);

// TODO: trafficConsume by thank243(senis) but it's hard to determine GT0003 is legitimate client or not...
// Anyway, block dt/torrent and Taipei-torrent with specific case first.
Expand Down

0 comments on commit fb6e1ae

Please sign in to comment.