end.
add_listener(PortIP, Module, Opts) ->
- {Port, IPT, _, _, Proto, _} = parse_listener_portip(PortIP, Opts),
+ {Port, IPT, _, Proto, _} = parse_listener_portip(PortIP, Opts),
PortIP1 = {Port, IPT, Proto},
case start_listener(PortIP1, Module, Opts) of
{ok, _Pid} ->
%% Module = atom()
%% Opts = [term()]
delete_listener(PortIP, Module, Opts) ->
- {Port, IPT, _, _, Proto, _} = parse_listener_portip(PortIP, Opts),
+ {Port, IPT, _, Proto, _} = parse_listener_portip(PortIP, Opts),
PortIP1 = {Port, IPT, Proto},
stop_listener(PortIP1, Module).
[<<"tcp">>, <<"udp">>]))).
get_port_data(PortIP, Opts) ->
- {Port, IPT, IPS, _IPV, NetProt, OptsClean} =
+ {Port, IPT, _IPV, NetProt, OptsClean} =
ejabberd_listener:parse_listener_portip(PortIP, Opts),
+ IPS = misc:ip_to_list(IPT),
SPort = integer_to_binary(Port),
SSPort = list_to_binary(
lists:map(fun (N) ->