Skip to content

Commit

Permalink
default port
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Jul 28, 2023
1 parent 59f6577 commit f5755e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cmp.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f5755e4

Please sign in to comment.