Skip to content

fix: args.rs P1/P2 bugs in CLI parser#2495

Open
Lubov66 wants to merge 1 commit into
cloudflare:masterfrom
Lubov66:master
Open

fix: args.rs P1/P2 bugs in CLI parser#2495
Lubov66 wants to merge 1 commit into
cloudflare:masterfrom
Lubov66:master

Conversation

@Lubov66

@Lubov66 Lubov66 commented May 25, 2026

Copy link
Copy Markdown

Fix critical reliability bugs in the CLI argument parser (apps/src/args.rs). Added missing --enable-pmtud option to SERVER_USAGE, which previously caused a deterministic startup panic due to docopt accessing an unknown key. Replaced incorrect get_bool() API usage on value-bearing options --body, --connect-to, and --session-file with proper get_str() checks. File read errors on --body are now surfaced explicitly instead of being silently swallowed via .ok(), preventing request-body omission without any diagnostic output

fix: args.rs type mismatch and remaining get_bool API misuse
@Lubov66 Lubov66 requested a review from a team as a code owner May 25, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant