From c9904e78aaadef80fa0e618ff22b251bad9599c8 Mon Sep 17 00:00:00 2001 From: JianBo He Date: Mon, 26 Sep 2022 17:30:54 +0800 Subject: [PATCH] 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 --- apps/emqx/src/emqx_listeners.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqx/src/emqx_listeners.erl b/apps/emqx/src/emqx_listeners.erl index 67f452e1d..1431538ad 100644 --- a/apps/emqx/src/emqx_listeners.erl +++ b/apps/emqx/src/emqx_listeners.erl @@ -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);