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

[Feature] option to disable upload #223

Merged
merged 3 commits into from
Aug 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add doc for --disable-upload
  • Loading branch information
ikatson committed Aug 28, 2024
commit 7fda8c0a1433badb5cd20584c659c63a18c4c537
5 changes: 5 additions & 0 deletions crates/rqbit/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ struct Opts {
#[arg(long, env = "RQBIT_UMASK", value_parser=parse_umask)]
umask: Option<libc::mode_t>,

/// Disable uploading entirely. If this is set, rqbit won't share piece availability
/// and will disconnect on download request.
///
/// Might be useful e.g. if rqbit upload consumes all your upload bandwidth and interferes
/// with your other Internet usage.
#[arg(long, env = "RQBIT_DISABLE_UPLOAD")]
disable_upload: bool,
}
Expand Down