fix(quic): ignore undefined cacertfile

This commit is contained in:
William Yang 2023-09-25 12:57:55 +02:00
parent 89e15e9134
commit 22193d273a
1 changed files with 4 additions and 0 deletions

View File

@ -437,6 +437,10 @@ do_start_listener(quic, ListenerName, #{bind := Bind} = Opts) ->
case maps:get(cacertfile, SSLOpts, undefined) of
undefined ->
[];
<<>> ->
[];
"" ->
[];
CaCertFile ->
[{cacertfile, emqx_schema:naive_env_interpolation(CaCertFile)}]
end ++