瀏覽代碼

fix(schema): no ciphers validator for quic listener

Zaiming Shi 4 年之前
父節點
當前提交
5417eb328a
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      apps/emqx/src/emqx_schema.erl

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

@@ -1114,7 +1114,10 @@ ciphers_schema(Default) ->
                           (Ciphers) when is_list(Ciphers) ->
                           (Ciphers) when is_list(Ciphers) ->
                                Ciphers
                                Ciphers
                        end
                        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 =>
         , desc =>
 """TLS cipher suite names separated by comma, or as an array of strings
 """TLS cipher suite names separated by comma, or as an array of strings
 <code>\"TLS_AES_256_GCM_SHA384,TLS_AES_128_GCM_SHA256\"</code> or
 <code>\"TLS_AES_256_GCM_SHA384,TLS_AES_128_GCM_SHA256\"</code> or