diff options
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/business/decrypt-mirroring/src/decrypt_mirror_plugin.cpp | 2 | ||||
| -rw-r--r-- | plugin/business/pangu-http/src/pangu_http.cpp | 9 |
2 files changed, 5 insertions, 6 deletions
diff --git a/plugin/business/decrypt-mirroring/src/decrypt_mirror_plugin.cpp b/plugin/business/decrypt-mirroring/src/decrypt_mirror_plugin.cpp index afe5743..7cb2200 100644 --- a/plugin/business/decrypt-mirroring/src/decrypt_mirror_plugin.cpp +++ b/plugin/business/decrypt-mirroring/src/decrypt_mirror_plugin.cpp @@ -5,7 +5,7 @@ int decrypt_mirror_init(struct tfe_proxy * proxy) { - const char* filepath="./conf/decrypt_mirror.conf"; + const char* filepath="./conf/tfe/decrypt_mirror.conf"; int thread_num=2, ret=0;//todo: aquire from proxy; ret=mirror_stream_init(thread_num, filepath); // assert(ret==0); diff --git a/plugin/business/pangu-http/src/pangu_http.cpp b/plugin/business/pangu-http/src/pangu_http.cpp index f2aa2b4..ca3d9ee 100644 --- a/plugin/business/pangu-http/src/pangu_http.cpp +++ b/plugin/business/pangu-http/src/pangu_http.cpp @@ -312,7 +312,7 @@ void trusted_CA_update_finish_cb(void* u_para) int pangu_http_init(struct tfe_proxy * proxy) { - const char * profile = "./pangu_conf/pangu_pxy.conf"; + const char * profile = "./conf/pangu/pangu_pxy.conf"; const char * logfile = "./log/pangu_pxy.log"; int table_id=0; @@ -345,7 +345,6 @@ int pangu_http_init(struct tfe_proxy * proxy) table_name[PXY_CTRL_HTTP_RES_BODY] = "PXY_CTRL_HTTP_RES_BODY"; for (int i = 0; i < __SCAN_TABLE_MAX; i++) { - g_pangu_rt->scan_table_id[i] = Maat_table_register(g_pangu_rt->maat, table_name[i]); if (g_pangu_rt->scan_table_id[i] < 0) { @@ -357,15 +356,15 @@ int pangu_http_init(struct tfe_proxy * proxy) char page_path[256]; memset(page_path, 0, sizeof(page_path)); MESA_load_profile_string_def(profile, "TEMPLATE", "PAGE_403", page_path, sizeof(page_path), - "./pangu_conf/template/HTTP403.html"); + "./resource/pangu/HTTP403.html"); g_pangu_rt->tpl_403 = ctemplate::Template::GetTemplate(page_path, ctemplate::DO_NOT_STRIP); memset(page_path, 0, sizeof(page_path)); MESA_load_profile_string_def(profile, "TEMPLATE", "PAGE_404", page_path, sizeof(page_path), - "./pangu_conf/template/HTTP404.html"); + "./resource/pangu/template/HTTP404.html"); g_pangu_rt->tpl_404 = ctemplate::Template::GetTemplate(page_path, ctemplate::DO_NOT_STRIP); memset(page_path, 0, sizeof(page_path)); MESA_load_profile_string_def(profile, "TEMPLATE", "PAGE_451", page_path, sizeof(page_path), - "./pangu_conf/template/HTTP451.html"); + "./resource/pangu/template/HTTP451.html"); g_pangu_rt->tpl_451 = ctemplate::Template::GetTemplate(page_path, ctemplate::DO_NOT_STRIP); MESA_load_profile_int_def(profile, "TANGO_CACHE", "enable_cache", &(g_pangu_rt->cache_enabled), 1); |
