Skip to content

IPV6 does not work on API #15

Description

@wintermute101
curl http://[::1]:8000/ -o ataka-player-cli.pyz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (56) Recv failure: Connection reset by peer

works on 127.0.0.1:8000/

diff --git a/ataka/api/Dockerfile b/ataka/api/Dockerfile
index 04ca958..4efafd1 100644
--- a/ataka/api/Dockerfile
+++ b/ataka/api/Dockerfile
@@ -15,4 +15,5 @@ COPY ataka/api/requirements.txt /ataka/api/
 RUN pip install --no-cache-dir -r /ataka/api/requirements.txt
 COPY ataka/api /ataka/api

-CMD [ "bash", "/ataka/common/delayed_start.sh", "--", "python", "-m", "uvicorn", "--host", "0.0.0.0", "ataka.api:app"]
+CMD [ "bash", "/ataka/common/delayed_start.sh", "--", "python", "-m", "uvicorn", "--host", "::", "ataka.api:app"]

Above patch can be applied to make it work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions