diff options
| author | liuxueli <[email protected]> | 2020-06-01 19:00:38 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2020-06-01 19:00:38 +0800 |
| commit | 737e62e9ac7600e3628294ff996c5920385fa612 (patch) | |
| tree | 4f08522290aa18bc531accbf0340b5d9fb76b337 | |
| parent | f8f6faabc59e416e1884b41dad993e37541764e1 (diff) | |
注册TSG_FIELD_QUIC_SNI表,QUIC SNI白名单配置在此表中v1.2.1.20.06
| -rw-r--r-- | src/tsg_entry.h | 1 | ||||
| -rw-r--r-- | src/tsg_rule.cpp | 4 |
2 files changed, 4 insertions, 1 deletions
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; |
