From f5755e47f3332b9e90bb411d714233eae16cffe7 Mon Sep 17 00:00:00 2001 From: 5HT Date: Fri, 28 Jul 2023 09:32:30 +0300 Subject: [PATCH] default port --- lib/cmp.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cmp.ex b/lib/cmp.ex index cae5542..11cbba1 100644 --- a/lib/cmp.ex +++ b/lib/cmp.ex @@ -11,7 +11,7 @@ defmodule CA.CMP do # -secret pass:0000 -certout maxim.pem -newkey maxim.key -subject "/CN=maxim/O=SYNRC/ST=Kyiv/C=UA" def code(), do: :binary.encode_hex(:crypto.strong_rand_bytes(8)) - def start(), do: :erlang.spawn(fn -> listen(829) end) + def start(), do: :erlang.spawn(fn -> listen(1829) end) def listen(port) do {:ok, socket} = :gen_tcp.listen(port,