fix(telemetry): Ensure verify_none for http client

This commit is contained in:
Zaiming (Stone) Shi 2022-05-15 23:16:32 +02:00
parent d6178f8611
commit ef0c14c522
1 changed files with 3 additions and 1 deletions

View File

@ -367,7 +367,9 @@ report_telemetry(State = #state{url = URL}) ->
end.
httpc_request(Method, URL, Headers, Body) ->
httpc:request(Method, {URL, Headers, "application/json", Body}, [], []).
HTTPOptions = [{timeout, timer:seconds(10)}, {ssl, [{verify, verify_none}]}],
Options = [],
httpc:request(Method, {URL, Headers, "application/json", Body}, HTTPOptions, Options).
ignore_lib_apps(Apps) ->
LibApps = [kernel, stdlib, sasl, appmon, eldap, erts,