test(ocsp): another fix for macos openssl versions
Co-authored-by: Ivan Dyachkov <dev@dyachkov.org>
This commit is contained in:
parent
32a8753e9d
commit
2b30f95dee
|
@ -308,7 +308,7 @@ get_sni_fun(ListenerID) ->
|
|||
proplists:get_value(sni_fun, SSLOpts).
|
||||
|
||||
openssl_version() ->
|
||||
Res0 = os:cmd("openssl version"),
|
||||
Res0 = string:trim(os:cmd("openssl version"), trailing),
|
||||
[_, Res] = string:split(Res0, " "),
|
||||
{match, [Version]} = re:run(Res, "^([^ ]+)", [{capture, first, list}]),
|
||||
Version.
|
||||
|
|
Loading…
Reference in New Issue