Skip to content

Commit a943902

Browse files
authored
Fixed bug in that user specified host/port/proxy were being overwritten
Now the environment variables HOST, PORT and DASH_PROXY are fallbacks rather than overwriting the user specified arguments for host, port, proxy
1 parent 7ba267b commit a943902

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)