简体   繁体   English

Monotorrent UDP错误

[英]Monotorrent UDP error

I tried to torrent files with this void: 我试图用这个空白来种子文件:

        public void DownloadTorrent(string path)
        {
            Torrent torrent = Torrent.Load(path);

            Console.WriteLine(torrent.Files[0]);
            TorrentManager manager = new TorrentManager(torrent, savePath, new TorrentSettings());
            engine.Register(manager);
            manager.HashCheck(true);
            manager.Start();
        }

but every time I load a torrent file, I get this error: 但是每次我加载种子文件时,都会出现此错误:

Unsupported protocol udp://tracker.publicbt.com:80/announce
Unsupported protocol udp://tracker.istole.it:80/announce

does someone knows how to solve this 有人知道如何解决这个问题

thanks in advance. 提前致谢。

MonoTorrent hasn't seen a commit in almost three years and even before that you can see that it was very sparsely worked on after 2010. It won't have all the nice features that a modern torrent client will have, just saying. MonoTorrent在将近三年内还没有提交过承诺,甚至在此之前,您还可以看到它在2010年之后的开发工作非常稀疏。只是说,它不会具有现代torrent客户所拥有的所有出色功能。

Anyway, the UDP Tracker Protocol was first published in 2008 so it's a fair chance that there actually is some support. 无论如何,UDP跟踪器协议于2008首次发布,因此很有可能获得一些支持。 Looking through their commits on github shows us that c900c7c actually added udp tracker support back in 2009. A quick check in TrackerFactory.cs also shows that the support still is there. 查看他们在github上的提交,可以看到c900c7c实际上在2009年添加了udp跟踪器支持。对TrackerFactory.cs的快速检查也显示出该支持仍然存在。

There is however a pull request regarding the udp tracker protocol that hasn't been merged (and probably never will) so I'd say that your best bet would be to clone or fork the repository (or one of the many other forks ) and build it yourself with that patch added. 但是,有一个关于udp跟踪器协议拉请求尚未被合并(可能永远不会),所以我想您最好的选择是克隆或派生存储库(或许多其他派生之一 ),然后自己创建并添加该补丁。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM