Simple-Tracker / qBittorrent-ClientBlocker

一款适用于 qBittorrent/Transmission (Beta)/BitComet (Beta, Partial) 的客户端屏蔽器, 默认屏蔽包括但不限于迅雷等客户端. A client blocker compatible with qBittorrent/Transmission (Beta)/BitComet (Beta, Partial) which is prohibited to include but not limited to clients such as Xunlei.
MIT License
839 stars 20 forks source link

失败时返回0 #50

Closed soiamsoNG closed 3 months ago

soiamsoNG commented 3 months ago

[RunConsole] 认证失败

失败后程序返回 0, 应该返回一个比0大的数值 或定义几个数值方便其他程序控制

Simple-Tracker commented 3 months ago

https://github.com/Simple-Tracker/qBittorrent-ClientBlocker/actions/runs/8601944877

此 Nightly Build 版本将在首次程序认证失败时返回 1, 这一改动会于后期发布于 3.2, 但值得注意的是: 这不包括其它不会导致程序结束的事件, 如 QBURL 为空包括程序未能检测到 qBittorrent 路径时程序并不会停止.

我们更倾向于为一些特殊事件加入唯一标记符, 这样其它程序就可以持续读取最后一行并用于判断当前状态.

另: 此版本属于 3.2 的早期, 因此可能有一些破坏性改动 (仅 Nightly Build), 例如 QBURL 更名为 URL 等.

Simple-Tracker commented 3 months ago

在 3.2b2/3.2b3 中完成.