Fix Docker listen IP setting

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-03-30 13:53:47 +02:00
parent 2b25953707
commit 11a06664bd
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -5,7 +5,7 @@ import Config
listen_ip = System.get_env("MOBILIZON_INSTANCE_LISTEN_IP", "::") listen_ip = System.get_env("MOBILIZON_INSTANCE_LISTEN_IP", "::")
listen_ip = listen_ip =
case :inet.parse_address(listen_ip) do case listen_ip |> to_charlist() |> :inet.parse_address() do
{:ok, listen_ip} -> listen_ip {:ok, listen_ip} -> listen_ip
_ -> raise "MOBILIZON_INSTANCE_LISTEN_IP does not match the expected IP format." _ -> raise "MOBILIZON_INSTANCE_LISTEN_IP does not match the expected IP format."
end end