Fix Docker listen IP setting
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
2b25953707
commit
11a06664bd
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user