From 5417eb328a8d7e32b3da0cc24adedd71f3b023d6 Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Mon, 27 Sep 2021 13:46:45 +0200 Subject: [PATCH] fix(schema): no ciphers validator for quic listener --- apps/emqx/src/emqx_schema.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/emqx/src/emqx_schema.erl b/apps/emqx/src/emqx_schema.erl index 7426925d8..344a1aa45 100644 --- a/apps/emqx/src/emqx_schema.erl +++ b/apps/emqx/src/emqx_schema.erl @@ -1114,7 +1114,10 @@ ciphers_schema(Default) -> (Ciphers) when is_list(Ciphers) -> Ciphers end - , validator => fun validate_ciphers/1 + , validator => case Default =:= quic of + true -> undefined; %% quic has openssl statically linked + false -> fun validate_ciphers/1 + end , desc => """TLS cipher suite names separated by comma, or as an array of strings \"TLS_AES_256_GCM_SHA384,TLS_AES_128_GCM_SHA256\" or