diff options
| author | luwenpeng <[email protected]> | 2020-06-11 17:57:18 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2020-07-06 16:16:21 +0800 |
| commit | cd26e3e6c1a0189a0834dcf11efb35616d19b9e7 (patch) | |
| tree | 91f26133c896df196e18e3a960648020365bffc8 /platform/src/proxy.cpp | |
| parent | d761b0ea7888f44faf39a6c0fe59fc211796bf67 (diff) | |
TSG-1531 TFE 新增 DOH 插件
1.DOH 协议解析
2.DOH 协议还原
3.DOH POST请求 early response
4.DOH 策略扫描
5.tfe plugin 支持多个 bussiness 插件调用
6.Maat_feather 的创建从 pangu 剥离(涉及pangu/doh/ssl-policy)
7.增加 kafka 日志
8.增加测试用例
Diffstat (limited to 'platform/src/proxy.cpp')
| -rw-r--r-- | platform/src/proxy.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/src/proxy.cpp b/platform/src/proxy.cpp index 9d11484..58dfa0f 100644 --- a/platform/src/proxy.cpp +++ b/platform/src/proxy.cpp @@ -37,6 +37,7 @@ #include <tfe_proxy.h> #include <tfe_plugin.h> #include <tfe_cmsg.h> +#include <tfe_resource.h> #include <platform.h> #include <proxy.h> @@ -729,6 +730,10 @@ int main(int argc, char * argv[]) g_default_proxy->scm_sender = sender_scm_init(main_profile, "kni", g_default_logger); CHECK_OR_EXIT(g_default_proxy->scm_sender != NULL, "Failed at creating scm sender, Exit."); + /* RESOURCE INIT */ + ret = tfe_bussiness_resouce_init(); + CHECK_OR_EXIT(ret == 0, "TFE bussiness resource init failed. Exit."); + /* PLUGIN INIT */ unsigned int plugin_iterator = 0; for (struct tfe_plugin * plugin_iter = tfe_plugin_iterate(&plugin_iterator); @@ -739,7 +744,6 @@ int main(int argc, char * argv[]) TFE_LOG_INFO(g_default_logger, "Plugin %s initialized. ", plugin_iter->symbol); } - //ugly here. g_business_maat is available after plugin initiate. g_default_proxy->ssl_ply_enforcer=ssl_policy_enforcer_create(g_default_logger); ssl_manager_set_new_upstream_cb(g_default_proxy->ssl_mgr_handler, ssl_policy_enforce, g_default_proxy->ssl_ply_enforcer); ret = tfe_proxy_work_thread_run(g_default_proxy); |
