anacrolix / confluence

Torrent client as a HTTP service
Mozilla Public License 2.0
237 stars 32 forks source link

How to use packed-blocklist? #28

Open chaos369 opened 3 years ago

chaos369 commented 3 years ago

It's printed when start up, any details about blocklist?

2021/01/12 07:59:22 main.go:70: open packed-blocklist: no such file or directory

anacrolix commented 3 years ago

This is an attempted to load the compact-representation IP blocklist that you can produce from common "blocklist" sets available on the internet. It really should be documented better. The log message just informs you that the file wasn't found.

I'm open to thoughts on how to handle this better, and documentation improvements.

anacrolix commented 3 years ago

@chaos369 also thank you for the battery of issues, the polish is lacking in many places and it takes someone else to point it out.

chaos369 commented 3 years ago

It's a pleasure to help a bit for wonderful stuffs. I tried the list from iblocklist.com, but it can't be load directly. Would you please guide me to convert these data to the "packed" format?

anacrolix commented 3 years ago

There's a cmd to repack this into the packed for supported by anacrolix/torrent: https://github.com/anacrolix/torrent/tree/master/iplist/cmd. Sorry it's all undocumented.