Skip to content

Commit

Permalink
feat: add ipv6 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
EstrellaXD committed Aug 28, 2023
1 parent 766bcb1 commit 58cd479
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/src/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

import logging
import uvicorn

Expand All @@ -21,9 +23,10 @@
}

if __name__ == "__main__":
host = "::" if os.getenv("IPV6") else "0.0.0.0"
uvicorn.run(
router,
host="0.0.0.0",
host=host,
port=settings.program.webui_port,
log_config=uvicorn_logging_config,
)

0 comments on commit 58cd479

Please sign in to comment.