fix: allow empty string as ciphers

This commit is contained in:
Zaiming (Stone) Shi 2022-08-24 21:01:37 +02:00
parent 9a5dda010e
commit 97856f2e42
1 changed files with 4 additions and 0 deletions

View File

@ -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) ->