c0re100 / qBittorrent-Enhanced-Edition

[Unofficial] qBittorrent Enhanced, based on qBittorrent
https://github.com/c0re100/qBittorrent-Enhanced-Edition
Other
18.67k stars 1.24k forks source link

archlinux当从睡眠状态恢复或是宽带重播ip地址变更后,qBittorrent-Enhanced-Edition的DHT连接数减半,感觉DHT功能失效了,新添加的任务无任何连接 #579

Open liuyunyue opened 2 months ago

liuyunyue commented 2 months ago

qBittorrent & operating system versions

qbittorrent-enhanced-git 4.6.5.10.r5.gfb6e1aee7-2 archlinux

What is the problem?

archlinux当从睡眠状态恢复或是宽带重播ip地址变更后,qBittorrent-Enhanced-Edition的DHT连接数减半,感觉DHT功能失效了,新添加的任务无任何连接

Steps to reproduce

No response

Additional context

No response

Log(s) & preferences file(s)

No response

Zerorigin commented 4 days ago

大部分系统在睡眠状态是无法维持网络链接状态的,所以恢复时 DHT 数量下降是正常现象

宽带重播时,一般路由器会重新进行 IPv6 RA 通告 若终端系统在这一块没处理好,可能会导致公网 IPv6 地址冲突,而不可用 此时可尝试在 Linux shell 命令窗口使用ifdown <网卡名称> && ifdown <网卡名称>来重启网卡 以便清理老旧的公网 IPv6 地址,防止冲突带来的持续影响 P.S.:注意将<网卡名称>(连同尖括号)整个替换为你的实际设备名称,比如eth1(可通过ip addr查看对应网卡)

针对 IPv4,则建议启用路由器的 UPnP 服务及 qBee 的 UPnP 自动映射 或在路由器手动固定一组映射端口(注意内外网的端口号要保持一致)