diff options
Diffstat (limited to 'plugin/business/doh/src/doh.cpp')
| -rw-r--r-- | plugin/business/doh/src/doh.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin/business/doh/src/doh.cpp b/plugin/business/doh/src/doh.cpp index aa0af29..805433d 100644 --- a/plugin/business/doh/src/doh.cpp +++ b/plugin/business/doh/src/doh.cpp @@ -1,6 +1,8 @@ #include "logger.h" #include <tfe_scan.h> +extern void increase_redirect_policy_hit_num(void); + #define DOH_CTX_MAGIC_NUM 20200601 #define REQ_METHOD_IS_GET(method) ((method == TFE_HTTP_METHOD_GET) ? 1 : 0) @@ -548,8 +550,9 @@ static void doh_process_req(const struct tfe_stream *stream, const struct tfe_ht ctx->manipulate = 1; ATOMIC_INC(&(g_doh_conf->stat_val[STAT_ACTION_HIJACK])); + increase_redirect_policy_hit_num(); - snprintf(cont_len_str, sizeof(cont_len_str), "%d", rsp_len); + snprintf(cont_len_str, sizeof(cont_len_str), "%d", rsp_len); response = tfe_http_session_response_create(to_write, 200); tfe_http_std_field_write(response, TFE_HTTP_CONT_LENGTH, cont_len_str); if (ctx->type == DOH_TYPE_MESSAGE) |
