added ip6 module into tls acceptor and added ip6 confs

This commit is contained in:
oleghasjanov 2024-04-29 11:20:50 +03:00
parent 2daf94f5a6
commit 1d949ea068
4 changed files with 20 additions and 1 deletions

View file

@ -25,7 +25,7 @@ init(Port) ->
{active, false}, {reuseaddr, true},
{verify, verify_peer}, {depth, 1},
{cacertfile, ca_cert_file()}, {certfile, cert_file()},
{keyfile, key_file()}],
{keyfile, key_file()}, inet6],
Options = handle_crl_check_options(DefaultOptions),
{ok, ListenSocket} = ssl:listen(Port, Options),
gen_server:cast(self(), accept),
@ -33,6 +33,7 @@ init(Port) ->
#state{socket = ListenSocket, port = Port,
options = Options}}.
%% Acceptor has only one state that goes in a loop:
%% 1. Listen for a connection from anyone.
%% 2. Ask supervisor to return a worker.