mirror of
https://github.com/curl/curl.git
synced 2026-07-26 07:47:33 +03:00
SWS: refuse to serve CONNECT unless running as proxy
This commit is contained in:
parent
dddcd3b042
commit
805788e043
1 changed files with 5 additions and 1 deletions
|
|
@ -1944,7 +1944,11 @@ int main(int argc, char *argv[])
|
|||
|
||||
if(DOCNUMBER_CONNECT == req.testno) {
|
||||
/* a CONNECT request, setup and talk the tunnel */
|
||||
http_connect(&msgsock, sock, &req, hostport);
|
||||
if(!is_proxy) {
|
||||
logmsg("received CONNECT but isn't running as proxy! EXIT");
|
||||
}
|
||||
else
|
||||
http_connect(&msgsock, sock, &req, hostport);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue