chore: add changelog for 11226 pr

This commit is contained in:
zhongwencool 2023-07-07 21:26:59 +08:00
parent d781346efc
commit c0ee47dc08
3 changed files with 4 additions and 3 deletions

View File

@ -229,7 +229,7 @@ t_ssl_password_cert(Config) ->
keyfile => filename:join(DataDir, "server-password.key") keyfile => filename:join(DataDir, "server-password.key")
}, },
LConf = #{ LConf = #{
enabled => true, enable => true,
bind => {{127, 0, 0, 1}, Port}, bind => {{127, 0, 0, 1}, Port},
mountpoint => <<>>, mountpoint => <<>>,
zone => default, zone => default,

View File

@ -363,14 +363,14 @@ listeners_test() ->
?assertMatch( ?assertMatch(
#{ #{
<<"bind">> := {{0, 0, 0, 0}, 1883}, <<"bind">> := {{0, 0, 0, 0}, 1883},
<<"enabled">> := true <<"enable">> := true
}, },
Tcp Tcp
), ),
?assertMatch( ?assertMatch(
#{ #{
<<"bind">> := {{0, 0, 0, 0}, 8083}, <<"bind">> := {{0, 0, 0, 0}, 8083},
<<"enabled">> := true, <<"enable">> := true,
<<"websocket">> := #{<<"mqtt_path">> := "/mqtt"} <<"websocket">> := #{<<"mqtt_path">> := "/mqtt"}
}, },
Ws Ws

View File

@ -0,0 +1 @@
Unify the listener switch to `enable`, while being compatible with the previous `enabled`.