Skip to content

Commit 535b5f3

Browse files
committed
Detect non-port-needing URI schemes and put in the correct configuration.
1 parent 8fb9bb5 commit 535b5f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/quart/app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,10 @@ def run_task(
919919
config = HyperConfig()
920920
config.access_log_format = "%(h)s %(r)s %(s)s %(b)s %(D)s"
921921
config.accesslog = "-"
922-
config.bind = [f"{host}:{port}"]
922+
if host.startswith("unix:") or host.startswith("fd:"):
923+
config.bind = [f"{host}"]
924+
else:
925+
config.bind = [f"{host}:{port}"]
923926
config.ca_certs = ca_certs
924927
config.certfile = certfile
925928
if debug is not None:

0 commit comments

Comments
 (0)