chore: remove colon port in HTTP-API and CLI

In the https://github.com/emqx/emqx/pull/8571, we add a colon before the
port. But it was not popular, so we removed ta in this PR
This commit is contained in:
JianBo He 2022-09-26 17:30:54 +08:00
parent b2d69b85dc
commit c9904e78aa
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ merge_default(Options) ->
integer() | {tuple(), integer()} | string() | binary()
) -> io_lib:chars().
format_bind(Port) when is_integer(Port) ->
io_lib:format(":~w", [Port]);
io_lib:format("~w", [Port]);
%% Print only the port number when bound on all interfaces
format_bind({{0, 0, 0, 0}, Port}) ->
format_bind(Port);