Skip to content

Commit 108b1c9

Browse files
authored
docs: fix configuration option for trusting forwarded IPs (#2479)
1 parent a1783d8 commit 108b1c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/deployment.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ Uvicorn can use these headers to correctly set the client and protocol in the re
376376
However as anyone can set these headers you must configure which "clients" you will trust to have set them correctly.
377377

378378
Uvicorn can be configured to trust IP Addresses (e.g. `127.0.0.1`), IP Networks (e.g. `10.100.0.0/16`),
379-
or Literals (e.g. `/path/to/socket.sock`). When running from CLI these are configured using `--forwarded-trust-ips`.
379+
or Literals (e.g. `/path/to/socket.sock`). When running from CLI these are configured using `--forwarded-allow-ips`.
380380

381381
!!! Warning "Only trust clients you can actually trust!"
382382
Incorrectly trusting other clients can lead to malicious actors spoofing their apparent client address to your application.

0 commit comments

Comments
 (0)