Skip to content

Commit 9140d3a

Browse files
authored
Merge pull request #3122 from trbedwards/patch-1
Fixed bug in that user specified host/port/proxy were being overwritten
2 parents 7ba267b + a943902 commit 9140d3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dash/dash.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2137,9 +2137,9 @@ def run(
21372137

21382138
# Evaluate the env variables at runtime
21392139

2140-
host = os.getenv("HOST", host)
2141-
port = os.getenv("PORT", port)
2142-
proxy = os.getenv("DASH_PROXY", proxy)
2140+
host = host or os.getenv("HOST")
2141+
port = port or os.getenv("PORT")
2142+
proxy = proxy or os.getenv("DASH_PROXY")
21432143

21442144
# Verify port value
21452145
try:

0 commit comments

Comments
 (0)