diff --git a/http.c b/http.c index db04021..2411373 100644 --- a/http.c +++ b/http.c @@ -487,16 +487,6 @@ 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 { @@ -578,4 +568,3 @@ void create_listen(char *ip, int port) -