Explorar o código

Merge pull request #5682 from tigercl/fix/restart-listener

fix(listener): updating authentication no longer causes the listener to restart
tigercl %!s(int64=4) %!d(string=hai) anos
pai
achega
242214988f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/emqx/src/emqx_listeners.erl

+ 1 - 1
apps/emqx/src/emqx_listeners.erl

@@ -280,7 +280,7 @@ flatten_listeners(Conf0) ->
                       || {Type, Conf} <- maps:to_list(Conf0)])).
 
 do_flatten_listeners(Type, Conf0) ->
-    [{listener_id(Type, Name), Conf} || {Name, Conf} <- maps:to_list(Conf0)].
+    [{listener_id(Type, Name), maps:remove(authentication, Conf)} || {Name, Conf} <- maps:to_list(Conf0)].
 
 esockd_opts(Type, Opts0) ->
     Opts1 = maps:with([acceptors, max_connections, proxy_protocol, proxy_protocol_timeout], Opts0),