From b99627b86670b1bcbd6f42221960412825e803d4 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Wed, 23 Mar 2022 15:50:36 +0100 Subject: [PATCH] chore(emqx_auth_mongo_sup): port changes from ee back to ce --- apps/emqx_auth_mongo/src/emqx_auth_mongo_sup.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/emqx_auth_mongo/src/emqx_auth_mongo_sup.erl b/apps/emqx_auth_mongo/src/emqx_auth_mongo_sup.erl index 55263494a..982b20727 100644 --- a/apps/emqx_auth_mongo/src/emqx_auth_mongo_sup.erl +++ b/apps/emqx_auth_mongo/src/emqx_auth_mongo_sup.erl @@ -34,7 +34,8 @@ init([]) -> {ok, {{one_for_all, 10, 100}, [PoolSpec]}}. may_parse_srv_and_txt_records(Opts) when is_list(Opts) -> - maps:to_list(may_parse_srv_and_txt_records(maps:from_list(Opts))); + Default = #{srv_record => false}, + maps:to_list(may_parse_srv_and_txt_records(maps:merge(Default, maps:from_list(Opts)))); may_parse_srv_and_txt_records(#{type := Type, srv_record := false,