ShenHongFei / utorrent-block-xunlei

A small script for uTorrent that blocks Xunlei(Thunder) clients automatically. uTorrent 自动屏蔽迅雷脚本
170 stars 20 forks source link

影响下载速度 #16

Closed DamnCrab closed 3 years ago

DamnCrab commented 4 years ago

运行一小时左右下载速度急剧下降,手动清理ipfilter.dat之后速度提升。 版本3.5.5 能否加入自动清理ipfilter.dat功能

ShenHongFei commented 4 years ago

好的,有空加一下,不过为什么会速度会急剧下降呢?

SeaHOH commented 4 years ago

自动清理很有必要,但不太可能是影响下载速度的原因,尤其是你这才运行一小时。

ShenHongFei commented 3 years ago

utorrent-block-xunlei-v2.0 正式发布!快来试试 v2.0 版本 https://github.com/ShenHongFei/utorrent-block-xunlei/releases

下个 release 版本支持 REPL, 可实时操控 utorrent 状态 或者执行 npx utorrent-block-xunlei 然后在窗口里粘贴以下代码

async function delay (milliseconds) {
    return new Promise( resolve => {
        setTimeout(resolve, milliseconds)
    })
}

;(async () => {
    while (true) {
        await delay(1000 * 间隔秒数)
        await utorrent.reset_ipfilter()
    }
})()