Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Simple-Tracker committed Jan 13, 2024
1 parent c5b8153 commit 4b86799
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# qBittorrent-ClientBlocker
一款适用于 qBittorrent 的客户端屏蔽器.
一款适用于 qBittorrent 的客户端屏蔽器, 默认屏蔽包括但不限于迅雷等客户端.

* 支持记录日志及热重载配置
* 支持忽略私有 IP 地址
* 支持自定义 Ban List (不区分大小写, 支持正则表达式)

~~暂不支持客户端认证, 请打开 "对本地主机上的客户端跳过身份验证".~~
* 支持客户端认证 (Thanks [@ravizhan](https://github.com/ravizhan))

![Preview](Preview.png)

Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"qBURL": "http://127.0.0.1:990",
"username": "",
"password": "",
"blockList": ["-(XL|SD|XF|QD|BN|DL)(\\d+)-", "((^(xunlei?).?\\d+.\\d+.\\d+.\\d+)|cacao_torrent)", "-(UW\\w{4}|SP(([0-2]\\d{3})|(3[0-5]\\d{2})))-", "StellarPlayer", "anacrolix/torrent v?([0-1].([0-5][0-3]|[0-9]).?[0-9]?[0-9]?|unknown)"]
"blockList": ["-(XL|SD|XF|QD|BN|DL)(\\d+)-", "((^(xunlei?).?\\d+.\\d+.\\d+.\\d+)|cacao_torrent)", "-(UW\\w{4}|SP(([0-2]\\d{3})|(3[0-5]\\d{2})))-", "StellarPlayer", "anacrolix/torrent v?([0-1]\\.([0-9]|[0-3][0-9])\\.[0-9]?[0-9]?|unknown)"]
}
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type MainDataStruct struct {
Torrents map[string]TorrentStruct `json:"torrents"`
}
type TorrentStruct struct {
NumLeechs int64
NumLeechs int64 `json:"num_leechs"`
}
type PeerStruct struct {
IP string
Expand Down

0 comments on commit 4b86799

Please sign in to comment.