access get_env

This commit is contained in:
huangdan 2015-05-20 10:59:57 +08:00
parent 54d29160f6
commit e674d00330
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ stop() ->
%%%=============================================================================
init([]) ->
{ok, AcOpts} = application:get_env(access),
{ok, AcOpts} = application:get_env(emqttd, access),
ets:new(?ACCESS_CONTROL_TAB, [set, named_table, protected, {read_concurrency, true}]),
ets:insert(?ACCESS_CONTROL_TAB, {auth_modules, init_mods(auth, proplists:get_value(auth, AcOpts))}),
ets:insert(?ACCESS_CONTROL_TAB, {acl_modules, init_mods(acl, proplists:get_value(acl, AcOpts))}),