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:
parent
b2d69b85dc
commit
c9904e78aa
|
@ -521,7 +521,7 @@ merge_default(Options) ->
|
||||||
integer() | {tuple(), integer()} | string() | binary()
|
integer() | {tuple(), integer()} | string() | binary()
|
||||||
) -> io_lib:chars().
|
) -> io_lib:chars().
|
||||||
format_bind(Port) when is_integer(Port) ->
|
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
|
%% Print only the port number when bound on all interfaces
|
||||||
format_bind({{0, 0, 0, 0}, Port}) ->
|
format_bind({{0, 0, 0, 0}, Port}) ->
|
||||||
format_bind(Port);
|
format_bind(Port);
|
||||||
|
|
Loading…
Reference in New Issue