chore: print only the port number when bound on all interfaces.
This commit is contained in:
parent
5f2618912f
commit
f3fa302d84
|
@ -366,6 +366,11 @@ merge_default(Options) ->
|
|||
|
||||
format_addr(Port) when is_integer(Port) ->
|
||||
io_lib:format(":~w", [Port]);
|
||||
%% Print only the port number when bound on all interfaces
|
||||
format_addr({{0, 0, 0, 0}, Port}) ->
|
||||
format_addr(Port);
|
||||
format_addr({{0, 0, 0, 0, 0, 0, 0, 0}, Port}) ->
|
||||
format_addr(Port);
|
||||
format_addr({Addr, Port}) when is_list(Addr) ->
|
||||
io_lib:format("~ts:~w", [Addr, Port]);
|
||||
format_addr({Addr, Port}) when is_tuple(Addr) ->
|
||||
|
|
Loading…
Reference in New Issue