From 737e62e9ac7600e3628294ff996c5920385fa612 Mon Sep 17 00:00:00 2001 From: liuxueli Date: Mon, 1 Jun 2020 19:00:38 +0800 Subject: 注册TSG_FIELD_QUIC_SNI表,QUIC SNI白名单配置在此表中 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_entry.h | 1 + src/tsg_rule.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tsg_entry.h b/src/tsg_entry.h index e988cae..9b303a9 100644 --- a/src/tsg_entry.h +++ b/src/tsg_entry.h @@ -38,6 +38,7 @@ enum MASTER_TABLE{ TABLE_ASN_BUILT_IN, TABLE_LOCATION_USER_DEFINED, TABLE_LOCATION_BUILT_IN, + TABLE_QUIC_SNI, TABLE_MAX }; diff --git a/src/tsg_rule.cpp b/src/tsg_rule.cpp index 7cd2a9a..82d92d5 100644 --- a/src/tsg_rule.cpp +++ b/src/tsg_rule.cpp @@ -460,6 +460,8 @@ int tsg_rule_init(const char* conffile, void *logger) MESA_load_profile_string_def(conffile, "MAAT", "LOCATION_BUILT_IN_TABLE", g_tsg_para.table_name[TABLE_LOCATION_BUILT_IN], _MAX_TABLE_NAME_LEN, "TSG_IP_LOCATION_BUILT_IN"); MESA_load_profile_string_def(conffile, "MAAT", "LOCATION_USER_DEFINED_TABLE", g_tsg_para.table_name[TABLE_LOCATION_USER_DEFINED], _MAX_TABLE_NAME_LEN, "TSG_IP_LOCATION_USER_DEFINED"); + MESA_load_profile_string_def(conffile, "MAAT", "QUIC_SNI_TABLE", g_tsg_para.table_name[TABLE_QUIC_SNI], _MAX_TABLE_NAME_LEN, "TSG_FIELD_QUIC_SNI"); + //init static maat feather g_tsg_maat_feather=init_maat_feather(maat_conffile, (char *)"TSG_STATIC", (char *)"STATIC", logger); if(g_tsg_maat_feather==NULL) @@ -1125,7 +1127,7 @@ int tsg_scan_shared_policy(Maat_feather_t maat_feather, struct _identify_info *i idx=TABLE_SSL_SNI; break; case PROTO_QUIC: - idx=TABLE_SSL_SNI; + idx=TABLE_QUIC_SNI; break; default: return 0; -- cgit v1.2.3