From c1d1416fc2fc9af6c8ed5b672072e1c2841b7d95 Mon Sep 17 00:00:00 2001 From: mmmdbybyd <915445800@qq.com> Date: Sat, 24 Nov 2018 10:31:20 +0800 Subject: [PATCH] Update http.c --- http.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/http.c b/http.c index 9f69c36..db04021 100644 --- a/http.c +++ b/http.c @@ -487,6 +487,16 @@ void tcp_in(conn_t *in) free(host); return; } + else + { + //如果是CONNECT代理HTTP 需要再次获取host + char *host_save = host; + host = get_host(in->incomplete_data); + if (host) + free(host_save); + else + host = host_save; + } } else {