From 2164cc54f953a6be799ea711ca443cd2639cb5e7 Mon Sep 17 00:00:00 2001 From: Victor Torres Date: Mon, 30 Sep 2024 10:14:40 -0300 Subject: [PATCH] Fix command argument default --- uvicorn/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uvicorn/main.py b/uvicorn/main.py index 3aaeadd67..d134f7288 100644 --- a/uvicorn/main.py +++ b/uvicorn/main.py @@ -222,7 +222,7 @@ def print_version(ctx: click.Context, param: click.Parameter, value: bool) -> No "--proxy-headers/--no-proxy-headers", is_flag=True, default=True, - help="Enable/Disable X-Forwarded-Proto, X-Forwarded-For, X-Forwarded-Port to " "populate remote address info.", + help="Enable/Disable X-Forwarded-Proto, X-Forwarded-For, X-Forwarded-Port to populate remote address info.", ) @click.option( "--server-header/--no-server-header", @@ -248,8 +248,8 @@ def print_version(ctx: click.Context, param: click.Parameter, value: bool) -> No @click.option( "--forwarded-port/--no-forwarded-port", is_flag=True, - default=True, - help="Enable/Disable X-Forwarded-Port to " "populate remote address info.", + default=False, + help="Enable/Disable X-Forwarded-Port to populate remote address info.", ) @click.option( "--root-path",