mirror of
https://github.com/internetee/epp_proxy.git
synced 2025-08-21 22:50:48 +02:00
added ip6 module into tls acceptor and added ip6 confs
This commit is contained in:
parent
2daf94f5a6
commit
1d949ea068
4 changed files with 20 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue