Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-torres committed Sep 30, 2024
1 parent 0bdbeef commit c27c2a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uvicorn/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,10 @@ def __init__(
self.forwarded_allow_ips: list[str] | str
if forwarded_allow_ips is None:
self.forwarded_allow_ips = os.environ.get("FORWARDED_ALLOW_IPS", "127.0.0.1")
self.forwarded_port = False
else:
self.forwarded_allow_ips = forwarded_allow_ips # pragma: full coverage
self.forwarded_port = forwarded_port

self.forwarded_port = forwarded_port

if self.reload and self.workers > 1:
logger.warning('"workers" flag is ignored when reloading is enabled.')
Expand Down

0 comments on commit c27c2a1

Please sign in to comment.