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:
parent
0a16c9fabf
commit
d6b3ecf75e
|
@ -355,7 +355,7 @@ report_telemetry(State0 = #state{url = URL}) ->
|
||||||
State.
|
State.
|
||||||
|
|
||||||
httpc_request(Method, URL, Headers, Body) ->
|
httpc_request(Method, URL, Headers, Body) ->
|
||||||
HTTPOptions = [{timeout, 10_000}],
|
HTTPOptions = [{timeout, 10_000}, {ssl, [{verify, verify_none}]}],
|
||||||
Options = [],
|
Options = [],
|
||||||
httpc:request(Method, {URL, Headers, "application/json", Body}, HTTPOptions, Options).
|
httpc:request(Method, {URL, Headers, "application/json", Body}, HTTPOptions, Options).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue