1234567891011121314151617181920212223242526272829303132333435363738394041 |
- -module(ranch_ct_hook).
- -export([init/2]).
- init(_, _) ->
-
-
-
- application:set_env(ranch, ranch_sup_intensity, 10),
- application:set_env(ranch, ranch_sup_period, 1),
- ok = application:load(ssl),
- case {os:type(), application:get_key(ssl, vsn)} of
-
-
-
-
- {_, {ok, "9.0"++_}} ->
- ok;
- {{win32, nt}, {ok, "9."++_}} ->
- application:set_env(ssl, internal_active_n, 1);
- _ ->
- ok
- end,
- ct_helper:start([ranch]),
- ct_helper:make_certs_in_ets(),
- error_logger:add_report_handler(ct_helper_error_h),
- {ok, undefined}.
|