diff options
Diffstat (limited to 'tests/server')
-rw-r--r-- | tests/server/sws.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c index dddc606db..ef54bc65e 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -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; } |