This commit is contained in:
anlicheng 2026-03-11 15:37:45 +08:00
parent d735f29c2f
commit ace1b832f1

View File

@ -29,14 +29,15 @@ init([]) ->
SupFlags = #{strategy => one_for_one, intensity => 1000, period => 3600}, SupFlags = #{strategy => one_for_one, intensity => 1000, period => 3600},
Specs = [ Specs = [
#{ %% dns的逻辑
id => dns_proxy_sup, % #{
start => {dns_proxy_sup, start_link, []}, % id => dns_proxy_sup,
restart => permanent, % start => {dns_proxy_sup, start_link, []},
shutdown => 2000, % restart => permanent,
type => supervisor, % shutdown => 2000,
modules => ['dns_proxy_sup'] % type => supervisor,
}, % modules => ['dns_proxy_sup']
% },
#{ #{
id => sdlan_network_coordinator, id => sdlan_network_coordinator,
start => {sdlan_network_coordinator, start_link, []}, start => {sdlan_network_coordinator, start_link, []},