fix(listener): updating authentication no longer causes the listener to restart

This commit is contained in:
zhouzb 2021-09-08 11:24:59 +08:00
parent f75778b037
commit 287d315ed5
1 changed files with 1 additions and 1 deletions

View File

@ -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),