Просмотр исходного кода

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
JianBo He 3 лет назад
Родитель
Сommit
c9904e78aa
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/emqx/src/emqx_listeners.erl

+ 1 - 1
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);