fix: allow empty string as ciphers
This commit is contained in:
parent
9a5dda010e
commit
97856f2e42
|
@ -2041,6 +2041,10 @@ ciphers_schema(Default) ->
|
||||||
#{
|
#{
|
||||||
default => default_ciphers(Default),
|
default => default_ciphers(Default),
|
||||||
converter => fun
|
converter => fun
|
||||||
|
(<<>>) ->
|
||||||
|
[];
|
||||||
|
("") ->
|
||||||
|
[];
|
||||||
(Ciphers) when is_binary(Ciphers) ->
|
(Ciphers) when is_binary(Ciphers) ->
|
||||||
binary:split(Ciphers, <<",">>, [global]);
|
binary:split(Ciphers, <<",">>, [global]);
|
||||||
(Ciphers) when is_list(Ciphers) ->
|
(Ciphers) when is_list(Ciphers) ->
|
||||||
|
|
Loading…
Reference in New Issue