Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a configuration file #1

Open
jwodder opened this issue Jun 11, 2023 · 0 comments
Open

Add a configuration file #1

jwodder opened this issue Jun 11, 2023 · 0 comments
Labels
configuration enhancement New feature or request therefor

Comments

@jwodder
Copy link
Owner

jwodder commented Jun 11, 2023

demagnetize should be configurable via a TOML configuration file containing the following settings:

  • local port or port range to report to trackers
  • whether to actually listen on (and reject incoming connections to) the local port
  • the numwant value to send to trackers
  • local bind address
  • whether to use IPv4
  • whether to use IPv6
  • maximum number of magnet links to process at once in batch mode
  • maximum number of trackers to connect to at once per magnet link
  • maximum number of peers to connect to at once per magnet link
  • tracker timeouts
  • general peer interaction timeout?
  • maximum size of incoming packets to accept from peers?

The CLI should also have a dump-config subcommand for outputting the current configuration with explanatory comments above each field (good for creating a new config file).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration enhancement New feature or request therefor
Projects
None yet
Development

No branches or pull requests

1 participant