Browse Source

fix: allow empty string as ciphers

Zaiming (Stone) Shi 3 years atrás
parent
commit
97856f2e42
1 changed files with 4 additions and 0 deletions
  1. 4 0
      apps/emqx/src/emqx_schema.erl

+ 4 - 0
apps/emqx/src/emqx_schema.erl

@@ -2041,6 +2041,10 @@ ciphers_schema(Default) ->
         #{
             default => default_ciphers(Default),
             converter => fun
+                (<<>>) ->
+                    [];
+                ("") ->
+                    [];
                 (Ciphers) when is_binary(Ciphers) ->
                     binary:split(Ciphers, <<",">>, [global]);
                 (Ciphers) when is_list(Ciphers) ->