注册TSG_FIELD_QUIC_SNI表,QUIC SNI白名单配置在此表中
This commit is contained in:
@@ -38,6 +38,7 @@ enum MASTER_TABLE{
|
|||||||
TABLE_ASN_BUILT_IN,
|
TABLE_ASN_BUILT_IN,
|
||||||
TABLE_LOCATION_USER_DEFINED,
|
TABLE_LOCATION_USER_DEFINED,
|
||||||
TABLE_LOCATION_BUILT_IN,
|
TABLE_LOCATION_BUILT_IN,
|
||||||
|
TABLE_QUIC_SNI,
|
||||||
TABLE_MAX
|
TABLE_MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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_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", "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
|
//init static maat feather
|
||||||
g_tsg_maat_feather=init_maat_feather(maat_conffile, (char *)"TSG_STATIC", (char *)"STATIC", logger);
|
g_tsg_maat_feather=init_maat_feather(maat_conffile, (char *)"TSG_STATIC", (char *)"STATIC", logger);
|
||||||
if(g_tsg_maat_feather==NULL)
|
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;
|
idx=TABLE_SSL_SNI;
|
||||||
break;
|
break;
|
||||||
case PROTO_QUIC:
|
case PROTO_QUIC:
|
||||||
idx=TABLE_SSL_SNI;
|
idx=TABLE_QUIC_SNI;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user