Skip to content

The only downloader you need. 下载器的集大成者。

feat(bittorrent): explicitly bind ipv6 (#748)

Zhenfu Shi4f62f6c9249b
diff --git a/features/bittorrent_pack/session.py b/features/bittorrent_pack/session.py
index 1ff95d11..0c663001 100644
--- a/features/bittorrent_pack/session.py
+++ b/features/bittorrent_pack/session.py
@@ -277,7 +277,10 @@ class BTSession(QObject):
params = self._loadDhtState()
params.settings = {
"user_agent": f"GhostDownloader/{VERSION} libtorrent/{lt.__version__}",
- "listen_interfaces": f"0.0.0.0:{bittorrentConfig.listenPort.value}",
+ "listen_interfaces": (
+ f"0.0.0.0:{bittorrentConfig.listenPort.value},"
+ f"[::]:{bittorrentConfig.listenPort.value}"
+ ),
"connections_limit": bittorrentConfig.maxConnections.value,
"download_rate_limit": self._downloadLimit(),
"upload_rate_limit": int(bittorrentConfig.maxUploadSpeed.value),