fix(telemetry): add verify_none ssl option

To stop the "Authenticity is not established by certificate path
validation", Reason: "Option {verify, verify_peer} and
cacertfile/cacerts is missing" warning message
This commit is contained in:
Zaiming (Stone) Shi 2022-04-25 09:56:15 +02:00
parent 0a16c9fabf
commit d6b3ecf75e
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ report_telemetry(State0 = #state{url = URL}) ->
State.
httpc_request(Method, URL, Headers, Body) ->
HTTPOptions = [{timeout, 10_000}],
HTTPOptions = [{timeout, 10_000}, {ssl, [{verify, verify_none}]}],
Options = [],
httpc:request(Method, {URL, Headers, "application/json", Body}, HTTPOptions, Options).