rename
This commit is contained in:
parent
6001ec227c
commit
55a115d9ff
@ -2,7 +2,7 @@
|
||||
%%% @doc IPv6 UDP listener for connectivity checks.
|
||||
%%% @end
|
||||
%%%-------------------------------------------------------------------
|
||||
-module(ipv6_assistor_server).
|
||||
-module(ipv6_assist_server).
|
||||
|
||||
-include("sdlan.hrl").
|
||||
-include("sdlan_pb.hrl").
|
||||
@ -1,9 +1,9 @@
|
||||
%%%-------------------------------------------------------------------
|
||||
%% @doc ipv6_assistor top level supervisor.
|
||||
%% @doc ipv6_assist top level supervisor.
|
||||
%% @end
|
||||
%%%-------------------------------------------------------------------
|
||||
|
||||
-module(ipv6_assistor_server_sup).
|
||||
-module(ipv6_assist_server_sup).
|
||||
|
||||
-behaviour(supervisor).
|
||||
|
||||
@ -17,19 +17,19 @@ start_link() ->
|
||||
|
||||
init([]) ->
|
||||
SupFlags = #{strategy => one_for_one, intensity => 1000, period => 3600},
|
||||
{ok, Props} = application:get_env(sdlan, ipv6_assistor),
|
||||
{ok, Props} = application:get_env(sdlan, ipv6_assist),
|
||||
Port = proplists:get_value(port, Props, 1367),
|
||||
AcceptorNum = proplists:get_value(acceptor_nums, Props, 5),
|
||||
|
||||
Specs = lists:map(fun(Id) ->
|
||||
Name = ipv6_assistor_server:get_name(Id),
|
||||
Name = ipv6_assist_server:get_name(Id),
|
||||
#{
|
||||
id => Name,
|
||||
start => {ipv6_assistor_server, start_link, [Name, Port]},
|
||||
start => {ipv6_assist_server, start_link, [Name, Port]},
|
||||
restart => permanent,
|
||||
shutdown => 2000,
|
||||
type => worker,
|
||||
modules => ['ipv6_assistor_server']
|
||||
modules => ['ipv6_assist_server']
|
||||
}
|
||||
end, lists:seq(1, AcceptorNum)),
|
||||
{ok, {SupFlags, Specs}}.
|
||||
@ -39,12 +39,12 @@ init([]) ->
|
||||
modules => ['dns_server_sup']
|
||||
},
|
||||
#{
|
||||
id => ipv6_assistor_server_sup,
|
||||
start => {ipv6_assistor_server_sup, start_link, []},
|
||||
id => ipv6_assist_server_sup,
|
||||
start => {ipv6_assist_server_sup, start_link, []},
|
||||
restart => permanent,
|
||||
shutdown => 2000,
|
||||
type => supervisor,
|
||||
modules => ['ipv6_assistor_server_sup']
|
||||
modules => ['ipv6_assist_server_sup']
|
||||
},
|
||||
#{
|
||||
id => sdlan_network_coordinator,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user