diff options
| author | lijia <[email protected]> | 2024-07-17 14:27:15 +0800 |
|---|---|---|
| committer | lijia <[email protected]> | 2024-07-18 09:54:56 +0800 |
| commit | c4c7aa89bf01b321f5b582d84b684171e6dbcf66 (patch) | |
| tree | 37678010c572f18f5d439101a40cc1f832e0154a /src/http_decoder_tunnel.cpp | |
| parent | b1548c7c6dc2198a4df20b11ce8eb72e766f56b7 (diff) | |
Add BODY_START message; add http_url_decode(); disable CONNECT tunnel.HEADv2.0.4dev-on-stellar2.0
Diffstat (limited to 'src/http_decoder_tunnel.cpp')
| -rw-r--r-- | src/http_decoder_tunnel.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/http_decoder_tunnel.cpp b/src/http_decoder_tunnel.cpp index 67445f3..9cf477d 100644 --- a/src/http_decoder_tunnel.cpp +++ b/src/http_decoder_tunnel.cpp @@ -13,8 +13,12 @@ struct http_tunnel_message }; -int httpd_tunnel_identify(int curdir, struct http_decoder_half_data *hfdata) +int httpd_tunnel_identify(struct http_decoder_env *httpd_env, int curdir, struct http_decoder_half_data *hfdata) { + if(0 == httpd_env->hd_cfg.proxy_enable){ + return 0; + } + if(PACKET_DIRECTION_C2S == curdir){ struct http_request_line reqline = {}; http_decoder_half_data_get_request_line(hfdata, &reqline); |
